@cnbcool/mcp-server
Version:
CNB MCP Server. A comprehensive MCP server that provides seamless integration to the CNB's API(https://cnb.cool), offering a wide range of tools for repository management, pipelines operations and collaboration features
52 lines (42 loc) • 980 B
Markdown
# CNB MCP Server
CNB(https://cnb.cool) toolkits for LLMs supporting the MCP protocol
## Prerequisite
1. node >= 18
2. typescript >=5.5
## How to develop
1. `npm install`
2. `npx openapi-typescript@5.4.2 https://api.cnb.cool/swagger.json -o src/schema.d.ts`
3. Rename `.env.example` to `.env` and fill in the values
4. `npm build`
5. `npx @modelcontextprotocol/inspector -e API_TOKEN=xxxxxxxxxx node dist/index.js`
## How to configure
### Local
```json
{
"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>"
}
}
}
}
```
### Production
```json
{
"mcpServers": {
"cnb": {
"command": "npx",
"args": ["-y", "@cnbcool/mcp-server"],
"env": {
"API_BASE_URL": "<BASE_URL>",
"API_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
```