{"_id":"@2lab.ai/claude-mcp-server","name":"@2lab.ai/claude-mcp-server","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@2lab.ai/claude-mcp-server","version":"1.0.1","description":"MCP server for interacting with Anthropic's Claude CLI","main":"./dist/claude-mcp-server.js","bin":{"claude-mcp-server":"dist/claude-mcp-server.js"},"scripts":{"build":"tsc","prepublishOnly":"npm run build","start":"node dist/claude-mcp-server.js","inspect":"npm run build; npx @modelcontextprotocol/inspector node dist/claude-mcp-server.js","test":"vitest run","test:watch":"vitest"},"keywords":["mcp","claude","anthropic","server","cli"],"author":"","license":"ISC","repository":{"type":"git","url":"git+https://github.com/2lab-ai/claude-mcp-server.git"},"type":"module","dependencies":{"@modelcontextprotocol/sdk":"^1.24.3","zod":"^4.1.13"},"devDependencies":{"@types/node":"^24.10.2","ts-node":"^10.9.2","typescript":"^5.9.3","vitest":"^4.0.16"},"publishConfig":{"access":"public"},"_id":"@2lab.ai/claude-mcp-server@1.0.1","gitHead":"ffee98ad16cba025782ab13ad8c39b3a88a5a206","bugs":{"url":"https://github.com/2lab-ai/claude-mcp-server/issues"},"homepage":"https://github.com/2lab-ai/claude-mcp-server#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-aBz9CUR1+rjwIamtBqK8XbCfBajitHngJU5fGoLvzw+86SKA9i9gwACRODZgiRjKL+gfrqMZW4YcUTr35p7waw==","shasum":"1b8ef5296a9b4a30ea5044f7377d683794b51fc1","tarball":"https://registry.npmjs.org/@2lab.ai/claude-mcp-server/-/claude-mcp-server-1.0.1.tgz","fileCount":6,"unpackedSize":17708,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@2lab.ai%2fclaude-mcp-server@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBfqfv47Lq5rt0TPDcY63gl4dklFG0QTLcN80mE4+aJvAiEA3PE/S2KD+uzM5ejodKeeZ9QlL9w49EJQUiB1wQimg3M="}]},"_npmUser":{"name":"z-2lab","email":"z@2lab.ai"},"directories":{},"maintainers":[{"name":"z-2lab","email":"z@2lab.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/claude-mcp-server_1.0.1_1766740065656_0.8234472784877127"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-26T09:07:45.552Z","1.0.1":"2025-12-26T09:07:45.800Z","modified":"2025-12-26T09:07:46.317Z"},"maintainers":[{"name":"z-2lab","email":"z@2lab.ai"}],"description":"MCP server for interacting with Anthropic's Claude CLI","homepage":"https://github.com/2lab-ai/claude-mcp-server#readme","keywords":["mcp","claude","anthropic","server","cli"],"repository":{"type":"git","url":"git+https://github.com/2lab-ai/claude-mcp-server.git"},"bugs":{"url":"https://github.com/2lab-ai/claude-mcp-server/issues"},"license":"ISC","readme":"# Claude MCP Server\n\nA Model Context Protocol (MCP) server that provides a bridge to Anthropic's Claude CLI. This allows MCP-compliant clients (like Claude Desktop or Gemini) to interact with the Claude CLI to start new chat sessions or continue existing ones.\n\n## Features\n\n- **Start New Sessions**: Initiate a new conversation with a specific Claude model.\n- **Continue Sessions**: Reply to existing sessions using their Session ID.\n- **Session Management**: Automatically continues the latest session if no Session ID is provided.\n- **Model Selection**: Supports specifying different Claude models (e.g., `sonnet`, `opus`, `haiku`).\n- **System Prompt**: Native support for custom system prompts.\n- **Working Directory**: Specify custom working directory for CLI execution.\n\n## Prerequisites\n\n- Node.js 18+\n- [Claude CLI](https://docs.anthropic.com/en/docs/claude-code) installed and authenticated\n\n```bash\n# Install Claude CLI\nnpm install -g @anthropic-ai/claude-code\n\n# Authenticate\nclaude setup-token\n```\n\n## Installation\n\n### Global Installation\n\n```bash\nnpm install -g @2lab.ai/claude-mcp-server\n```\n\n### Run directly with npx\n\n```bash\nnpx @2lab.ai/claude-mcp-server\n```\n\n## Usage\n\n### Running the server\n\nAfter global installation:\n\n```bash\nclaude-mcp-server\n```\n\nOr with npx:\n\n```bash\nnpx @2lab.ai/claude-mcp-server\n```\n\n### Testing with MCP Inspector\n\nYou can test and debug the server using the MCP Inspector:\n\n```bash\nnpx @modelcontextprotocol/inspector npx @2lab.ai/claude-mcp-server\n```\n\nOr if globally installed:\n\n```bash\nnpx @modelcontextprotocol/inspector claude-mcp-server\n```\n\n### Claude Desktop Configuration\n\nAdd the following to your Claude Desktop configuration file:\n\n**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\n**Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"claude-cli\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@2lab.ai/claude-mcp-server\"]\n    }\n  }\n}\n```\n\nOr if globally installed:\n\n```json\n{\n  \"mcpServers\": {\n    \"claude-cli\": {\n      \"command\": \"claude-mcp-server\"\n    }\n  }\n}\n```\n\n### Claude Code Configuration\n\nAdd to your Claude Code settings:\n\n```json\n{\n  \"mcpServers\": {\n    \"claude-cli\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@2lab.ai/claude-mcp-server\"]\n    }\n  }\n}\n```\n\n## Available Tools\n\n### `chat`\n\nStart a new Claude session with a prompt.\n\n**Parameters:**\n- `prompt` (required): The prompt to start the session with\n- `model` (optional): The model to use (e.g., 'sonnet', 'opus', 'haiku')\n- `systemPrompt` (optional): System prompt to set the assistant's behavior\n- `cwd` (optional): Working directory for the claude CLI execution\n\n**Returns:** Response text and new Session ID in `_meta.sessionId`\n\n### `chat-reply`\n\nContinue an existing Claude session.\n\n**Parameters:**\n- `prompt` (required): The prompt to continue the conversation\n- `sessionId` (optional): The session ID to continue. If not provided, continues the most recent session\n- `model` (optional): The model to use for this turn\n- `systemPrompt` (optional): Additional system prompt to append for this turn\n- `cwd` (optional): Working directory for the claude CLI execution\n\n**Returns:** Response text and Session ID in `_meta.sessionId`\n\n## Development\n\n```bash\n# Clone the repository\ngit clone https://github.com/2lab-ai/claude-mcp-server.git\ncd claude-mcp-server\n\n# Install dependencies\nnpm install\n\n# Build\nnpm run build\n\n# Run tests\nnpm test\n\n# Run locally\nnpm start\n\n# Test with MCP Inspector\nnpm run inspect\n```\n\n## CI/CD\n\nThis project uses GitHub Actions to automatically publish to npm when changes are pushed to the `main` branch.\n\nTo enable automatic publishing:\n\n1. Generate an npm access token from [npmjs.com](https://www.npmjs.com/settings/~/tokens)\n2. Add the token as a secret named `NPM_TOKEN` in your GitHub repository settings\n3. Bump the version in `package.json` before pushing to trigger a publish\n\n## License\n\nISC\n","readmeFilename":"README.md","_rev":"1-316f5f6ab4e1030f6222edaa466a8c82"}