CNB(https://cnb.cool) toolkits for LLMs supporting the MCP protocol
npm installnpx openapi-typescript@5.4.2 https://api.cnb.cool/swagger.json -o src/schema.d.ts.env.example to .env and fill in the valuesnpm buildnpx @modelcontextprotocol/inspector -e API_TOKEN=xxxxxxxxxx node dist/index.js{
"mcpServers": {
"cnb": {
"command": "node",
"args": ["/path/to/cnbcool/mcp-server/dist/index.js"],
"env": {
"API_BASE_URL": "<BASE_URL>", // optional, defualt vaule: https://api.cnb.cool
"API_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
{
"mcpServers": {
"cnb": {
"command": "npx",
"args": ["-y", "@cnbcool/mcp-server"],
"env": {
"API_BASE_URL": "<BASE_URL>",
"API_TOKEN": "<YOUR_TOKEN>"
}
}
}
}