Skip to content

feat: add Claude MCP server for background task delegation#23

Open
localai-bot wants to merge 1 commit intomudler:masterfrom
localai-bot:claude-mcp-server-impl
Open

feat: add Claude MCP server for background task delegation#23
localai-bot wants to merge 1 commit intomudler:masterfrom
localai-bot:claude-mcp-server-impl

Conversation

@localai-bot
Copy link
Contributor

This PR adds a new MCP server in the claude/ directory that provides integration with Claude Code CLI, allowing other MCP clients to delegate tasks to Claude Code in the background.

What's Included

  • Complete MCP Server Implementation: New claude/ directory with full MCP server following the same pattern as opencode
  • Session Management: Tools for starting, monitoring, stopping, and listing Claude sessions
  • Docker Support: Dockerfile for containerized deployment
  • Documentation: Comprehensive README with usage examples, environment variables, and troubleshooting

Key Features

  • Background task delegation to Claude Code
  • Tool restrictions via --allowedTools and --tools flags
  • Full environment variable passthrough
  • Configurable session limits and retention
  • Log access for monitoring progress

Usage

Once merged, users can add this server with:

claude mcp add claude-mcp -- npx -y mudler/MCPs/claude

Or use the Docker image.

Testing

The server builds successfully and includes a binary. Manual testing can be done with the MCP inspector.

Part of issue #8659 (Claude MCP server request).

- Implement new MCP server in claude/ directory
- Supports starting, monitoring, and stopping Claude Code sessions
- Includes Dockerfile for containerized deployment
- Full documentation with usage examples and environment variables
- Follows same pattern as opencode MCP server
- Enables tool restrictions and environment passthrough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant