Skip to content

feat(bashkit-cli): Phase 10 - MCP server mode#11

Merged
chaliy merged 2 commits intomainfrom
claude/bash-filesystem-library-cYGoo
Jan 31, 2026
Merged

feat(bashkit-cli): Phase 10 - MCP server mode#11
chaliy merged 2 commits intomainfrom
claude/bash-filesystem-library-cYGoo

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Jan 31, 2026

Summary

Add MCP (Model Context Protocol) server support to the CLI:

Features

  • JSON-RPC 2.0 server on stdin/stdout
  • bashkit mcp subcommand
  • Exposes bash tool for sandboxed script execution
  • MCP protocol version 2024-11-05

Supported Methods

Method Description
initialize Return server capabilities
tools/list List available tools
tools/call Execute bash scripts
shutdown Clean shutdown

Usage

bashkit mcp

Claude Desktop Config

{
  "mcpServers": {
    "bashkit": {
      "command": "bashkit",
      "args": ["mcp"]
    }
  }
}

Test plan

  • Initialize returns server info
  • tools/list returns bash tool
  • tools/call executes scripts
  • Clippy clean
  • 140 tests pass

Add secure network access with URL allowlist:

NetworkAllowlist:
- Empty allowlist blocks all URLs by default
- Pattern matching on scheme, host, port, and path prefix
- Support for multiple patterns
- Optional allow_all() for testing

HttpClient (behind "network" feature):
- GET, POST, PUT, DELETE, HEAD, PATCH methods
- Request/response handling with body and headers
- Automatic timeout (30s default)
- All requests validated against allowlist

Security: Network disabled by default, explicit opt-in required.

https://claude.ai/code/session_01A16cD8ztbTJs2PB2iHe1Ua
Add MCP (Model Context Protocol) server support:

- JSON-RPC 2.0 server on stdin/stdout
- `bashkit mcp` subcommand to start server
- Exposes `bash` tool for script execution
- Standard MCP protocol (2024-11-05)

Supported methods:
- initialize: Return server capabilities
- tools/list: List available tools (bash)
- tools/call: Execute bash scripts
- shutdown: Clean shutdown

Usage:
```bash
bashkit mcp
```

Claude Desktop config:
```json
{"name": "bashkit", "command": "bashkit", "args": ["mcp"]}
```

https://claude.ai/code/session_01A16cD8ztbTJs2PB2iHe1Ua
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@chaliy chaliy merged commit 9119128 into main Jan 31, 2026
1 check failed
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.

2 participants