logo
0
0
Login

CNB MCP Server

CNB(https://cnb.cool) toolkits for LLMs supporting the MCP protocol

Tool List

Tool NameTool Description
cnb_list_groupsGets a list of top-level organizations for which the current user has permissions on the CNB platform.
cnb_list_sub_groupsGets a list of sub-organizations for which the current user has permissions on the CNB platform under a specified organization.
cnb_get_groupGets information about a specified organization on the CNB platform.
cnb_create_groupCreates a new organization on the CNB platform.
cnb_list_repositoriesGets a list of repositories for which the current user has permissions on the CNB platform.
cnb_list_group_repositoriesGets a list of repositories for which the current user has permissions on the CNB platform under a specified organization.
cnb_get_current_repositoryGets information about the CNB platform repository corresponding to the current workspace.
cnb_get_repositoryGets information about a specified repository on the CNB platform.
cnb_create_repositoryCreate a new repository on the CNB platform.
cnb_list_issuesGet a list of issues in a specified repository on the CNB platform.
cnb_get_issueGet information about a specified issue on the CNB platform.
cnb_create_issueCreate a new issue in a specified repository on the CNB platform. To add labels, use the cnb_add_issue_labels tool.
cnb_update_issueUpdate information about a specified issue on the CNB platform. To update labels, call the cnb_set_issue_labels tool separately.
cnb_list_issue_commentsGet a list of comments for a specified issue on the CNB platform.
cnb_create_issue_commentCreate a new comment on a specified issue on the CNB platform.
cnb_update_issue_commentUpdate the content of a comment on a specified issue on the CNB platform.
cnb_list_issue_labelsGet a list of labels for a specified issue on the CNB platform.
cnb_add_issue_labelsAdd one or more labels to a specified issue on the CNB platform.
cnb_set_issue_labelsChange the labels for a specified issue on the CNB platform.
cnb_clear_issue_labelsClear the labels for a specified issue on the CNB platform.
cnb_remove_issue_labelRemove a specified label from a specified issue on the CNB platform.
cnb_list_pullsGet a list of merge requests for a specified repository on the CNB platform.
cnb_get_pullGet information about a merge request specified on the CNB platform
cnb_create_pullCreate a new merge request in a repository specified on the CNB platform
cnb_update_pullUpdate information about a merge request specified on the CNB platform
cnb_merge_pullMerge a merge request specified on the CNB platform
cnb_list_pull_commentsGet a list of comments for a merge request specified on the CNB platform
cnb_create_pull_commentCreate a new comment on a merge request specified on the CNB platform
cnb_list_workspacesGet a list of the current user's cloud-native development environments on the CNB platform
cnb_delete_workspaceDelete a specified cloud-native development environment on the CNB platform

How to use

STDIO

{ "mcpServers": { "cnb": { "command": "npx", "args": ["-y", "-p", "@cnbcool/mcp-server", "cnb-mcp-stdio"], "env": { "API_BASE_URL": "<BASE_URL>", // optional, defualt vaule: https://api.cnb.cool "API_TOKEN": "<YOUR_TOKEN>" } } } }

Prerequisite

  1. node >= 18

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. Copy .env.example and rename to .env and fill in the values
  4. npm run build
  5. npx @modelcontextprotocol/inspector node dist/stdio.js

@modelcontextprotocol/inspector requires Node.js: ^22.7.5

https://github.com/modelcontextprotocol/inspector?tab=readme-ov-file#requirements

How to preview

  1. npm run build
  2. set mcpServers config:
{ "mcpServers": { "cnb": { "command": "node", "args": ["/path/to/cnbcool/mcp-server/dist/stdio.js"], "env": { "API_BASE_URL": "<BASE_URL>", // optional, defualt vaule: https://api.cnb.cool "API_TOKEN": "<YOUR_TOKEN>" } } } }

About

No description, topics, or website provided.
Language
TypeScript82.8%
Markdown7.2%
gitignore6.4%
JavaScript3.4%
Others0.2%