CNB (Cloud Native Build) service MCP access
It provides CNB service invocation via the MCP protocol, supporting capabilities such as querying repositories, viewing issues, creating issues, and more.
Environment Variables
- Configure API_TOKEN as the access token you created on CNB
Usage Instructions
CNB MCP Server Reference Documentation
🗺️ Feature List
Tool Identifier | Function Description | Core Parameters |
---|---|---|
list-repositories | Retrieve repositories for which the current user has the specified permission or higher | page, page_size, search, filter_type, role, order_by, desc |
list-group-repositories | Retrieve repositories within a group that the current user has permission to access | page, page_size, search, group, filter_type, order_by, desc, descendant |
get-repository | Get the specified repository information | repoId |
list-Issues | Query repository Issues | repoId, page, page_size, state, keyword, priority, labels, authors, assignees, updated_time_begin, updated_time_end, order_by |
get-issue | Get the specified Issue information | repoId, issueId |
create-issue | Create an Issue | repoId, title, body, assignees, labels, priority |
Repository URL
https://cnb.cool/cnb/tools/cnb-mcp-server
🔌 Usage
Parameter Description
list-repositories
Retrieve repositories for which the current user has the specified permission or higher
Input Parameter | Type | Description |
---|---|---|
page | optional number | Page number |
page_size | optional number | Page size |
search | string | Search keywords |
filter_type | optional string | Repository type: private, public, encrypted |
role | optional string | Minimum repository permission, default owner. Enumerated values: Reporter, Developer, Master, Owner |
order_by | optional string | Sort type, default last_updated_at. Enumerated values: created_at, last_updated_at, stars, slug_path, forks |
desc | optional boolean | Descending |
Returns: Repository information
list-group-repositories
Retrieve repositories within the group that the current user has permission to access.
Input Parameter | Type | Description |
---|---|---|
page | optional number | Page number |
page_size | optional number | Page size |
search | string | Search keywords |
group | string | Organization name |
filter_type | optional string | Repository type: private, public, encrypted |
order_by | optional string | Sort type, default last_updated_at. Enumerated values: created_at, last_updated_at, stars, slug_path, forks |
desc | optional boolean | Descending |
descendant | optional boolean | Enumerated values: All repositories/Repositories directly under the current organization/Repositories in sub-organizations, all/sub/grand |
Returns: Repository information
get-repository
Get specified repository information
Input Parameter | Type | Description |
---|---|---|
repoId | optional string | repo path |
Returns: Repository information
list-issues
Query repository Issues
Input Parameter | Type | Description |
---|---|---|
repoId | optional string | repo path |
page | optional number | Page number |
page_size | optional number | Page size |
state | optional string | open or closed |
keyword | optional string | Search keywords |
priority | optional string | issue priority, enumerated values: p0, p1, p2, p3 |
labels | optional string | issue labels, enumerated values: git, bug, feature |
authors | optional string | issue author |
assignees | optional string | issue assignee |
updated_time_begin | optional string | issue update time range, start time, e.g. 2022-01-31 |
updated_time_end | optional string | issue update time range, end time, e.g. 2022-01-31 |
order_by | optional string | issue sort order, enumerated values: created_at, -updated_at, reference_count (the '-' prefix indicates descending order) |
Returns: issue information
get-issue
Get the specified Issue information
Input Parameter | Type | Description |
---|---|---|
repoId | optional string | repo path |
issueId | optional number | issue ID |
Returns: issue information
create-issue
Create an Issue
Input Parameter | Type | Description |
---|---|---|
repoId | optional string | repo path |
title | optional string | issue title |
body | optional string | issue description |
assignees | optional string[] | One or more Issue assignee usernames |
labels | optional string[] | One or more Issue labels |
priority | optional string | issue priority, enumerated values: p0, p1, p2, p3 |
Returns: issue information