diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d898244 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +FROM python:3.12-slim + +# Set working directory +WORKDIR /app + +# Copy all files +COPY . . + +# Upgrade pip and install build dependencies +RUN pip install --upgrade pip \ + && pip install hatchling \ + && pip install . + +# Expose port if necessary (if MCP server listens on a port, not clear though) + +# Run the MCP server +CMD ["codemcp"] diff --git a/README.md b/README.md index 9fc8e49..433384c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # codemcp +[![smithery badge](https://smithery.ai/badge/@ezyang/codemcp)](https://smithery.ai/server/@ezyang/codemcp) Make Claude Desktop a pair programming assistant by installing codemcp. With it, you can directly ask Claude to implement features, fix bugs and do @@ -59,6 +60,14 @@ Restart the Claude Desktop app after modifying the JSON. If the MCP successfully loaded, a hammer icon will appear and when you click it "codemcp" will be visible. +### Installing via Smithery + +To install Code MCP for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@ezyang/codemcp): + +```bash +npx -y @smithery/cli install @ezyang/codemcp --client claude +``` + ### Global install with pip If you don't want to use uv, you can also globally pip install the latest diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..0c30d87 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,16 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + properties: {} + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ + command: 'codemcp', + args: [] + }) + exampleConfig: {}