agenthub/package.json
chahinebrini 5586f2c15b feat(mcp): MCP server — agenthub hub tools over stdio
Solid-collaboration foundation: agents invoke STRUCTURED tools instead of
shelling out to the CLI — so a tool can't be narrated away, hallucinated as
"doesn't exist", or mistyped. Confirmed working for Claude / Codex / Kimi
(all speak MCP).

- src/mcp/server.ts: `agenthub mcp` starts a stdio MCP server exposing 16
  tools (work, task_list/show/create/assign/claim/review/reopen/done,
  memory_add/search, handoff_read/create, decision_create, hello, status).
  Thin layer over the SAME core: proxies through the REST API (remoteClient)
  when a hub is configured — so board, SSE, status auto-refresh and CLI keep
  working unchanged — else local services. agenthub_work blocks on SSE until
  a task addressed to the agent is claimable, then returns it + its handoff.
- `agenthub mcp` command; excluded from the update-notify (stdio purity).
- Verified: initialize + tools/list (16) + tools/call (status, task_list)
  proxy to the live hub.

Does NOT change the dormant-agent reality (agents still loop agenthub_work);
it makes every interaction reliable. Bump 0.6.1 -> 0.7.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 00:52:13 +02:00

54 lines
1.0 KiB
JSON

{
"name": "agenthub",
"version": "0.7.0",
"description": "Local coordination layer for AI coding agents",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"bin"
],
"bin": {
"agenthub": "./bin/agenthub.js"
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"test": "vitest run",
"test:watch": "vitest"
},
"engines": {
"node": ">=20"
},
"dependencies": {
"@inquirer/prompts": "^7.0.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"better-sqlite3": "^12.0.0",
"commander": "^13.0.0",
"fastify": "^5.0.0",
"yaml": "^2.6.0",
"zod": "^3.23.0"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.12",
"@types/node": "^22.0.0",
"typescript": "^5.7.0",
"vitest": "^3.0.0"
},
"keywords": [
"ai",
"agents",
"claude",
"codex",
"kimi",
"collaboration"
],
"license": "MIT",
"pnpm": {
"onlyBuiltDependencies": [
"better-sqlite3"
]
}
}