Files
shumai/packages/api/package.json
T
yiling 44f92238c7 feat(mcp): serve Operations over MCP and a generic /api/ops endpoint
Add a stateless Streamable HTTP MCP server at /api/mcp that exposes every
mcp-surface Operation with its input/output schemas and annotations, and
POST /api/ops/:name for the CLI. Both require an API token (session
cookies are rejected), run Operations as the token's user, honor demo
read-only mode, and record via mcp/cli/api in audit logs.

Also make list_projects toggleable in agent settings and document MCP
client setup.
2026-10-26 11:50:14 +08:00

24 lines
552 B
JSON

{
"name": "@shumai/api",
"version": "0.6.1",
"private": true,
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"dependencies": {
"@hono/zod-validator": "0.7.6",
"@modelcontextprotocol/server": "2.0.0",
"@shumai/core": "workspace:*",
"@shumai/db": "workspace:*",
"@shumai/dtos": "workspace:*",
"@shumai/operations": "workspace:*",
"hono": "4.13.5",
"pino": "10.3.1",
"ulid": "3.0.2",
"zod": "4.5.4"
},
"devDependencies": {
"@modelcontextprotocol/client": "2.0.0"
}
}