feat: Add CCW MCP server and tools integration

- Introduced `ccw-mcp` command for running CCW tools as an MCP server.
- Updated `package.json` to include new MCP dependencies and scripts.
- Enhanced CLI with new options for `codex_lens` tool.
- Implemented MCP server logic to expose CCW tools via Model Context Protocol.
- Added new tools and updated existing ones for better functionality and documentation.
- Created quick start and full documentation for MCP server usage.
- Added tests for MCP server functionality to ensure reliability.
This commit is contained in:
catlog22
2025-12-13 09:14:57 +08:00
parent 15122b9ebb
commit d4e59770d0
20 changed files with 1829 additions and 200 deletions

View File

@@ -5,11 +5,13 @@
"type": "module",
"main": "src/index.js",
"bin": {
"ccw": "./bin/ccw.js"
"ccw": "./bin/ccw.js",
"ccw-mcp": "./bin/ccw-mcp.js"
},
"scripts": {
"test": "node --test tests/*.test.js",
"test:codexlens": "node --test tests/codex-lens*.test.js",
"test:mcp": "node --test tests/mcp-server.test.js",
"lint": "eslint src/"
},
"keywords": [
@@ -25,6 +27,7 @@
"node": ">=16.0.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.4",
"boxen": "^7.1.0",
"chalk": "^5.3.0",
"commander": "^11.0.0",