diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..26d8f54 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +FROM node:lts-alpine + +# Set working directory +WORKDIR /app + +# Copy package files +COPY package.json package-lock.json ./ + +# Install dependencies +RUN npm install --ignore-scripts + +# Copy source code +COPY . . + +# Build the project +RUN npm run build + +# Expose port if needed (MCP uses stdio so not required) + +# Command to run the MCP server +CMD [ "node", "dist/index.js" ] diff --git a/README.md b/README.md index f43eca9..4bdc148 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Claude Code MCP +[![smithery badge](https://smithery.ai/badge/@auchenberg/claude-code-mcp)](https://smithery.ai/server/@auchenberg/claude-code-mcp) + Claude Code MCP is an implementation of [Claude Code](https://gist.github.com/transitive-bullshit/487c9cb52c75a9701d312334ed53b20c) as a [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server. This project allows you to use Claude Code's powerful software engineering capabilities through the standardized MCP interface. ## What is Claude Code? @@ -36,6 +38,15 @@ By implementing Claude Code as an MCP server, we make its capabilities available ## Installation +### Installing via Smithery + +To install Claude Code MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@auchenberg/claude-code-mcp): + +```bash +npx -y @smithery/cli install @auchenberg/claude-code-mcp --client claude +``` + +### Installing Manually ```bash # Clone the repository git clone https://github.com/auchenberg/claude-code-mcp.git diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..c58adc2 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,13 @@ +# 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: 'node', args: ['dist/index.js'] }) + exampleConfig: {}