Skip to main content

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.

Deploy MCP Server


Environment Variables

Usage Instructions

CNB MCP Server Reference Documentation

🗺️ Feature List

Tool IdentifierFunction DescriptionCore Parameters
list-repositoriesRetrieve repositories for which the current user has the specified permission or higherpage, page_size, search, filter_type, role, order_by, desc
list-group-repositoriesRetrieve repositories within a group that the current user has permission to accesspage, page_size, search, group, filter_type, order_by, desc, descendant
get-repositoryGet the specified repository informationrepoId
list-IssuesQuery repository IssuesrepoId, page, page_size, state, keyword, priority, labels, authors, assignees, updated_time_begin, updated_time_end, order_by
get-issueGet the specified Issue informationrepoId, issueId
create-issueCreate an IssuerepoId, title, body, assignees, labels, priority

Repository URL

https://cnb.cool/cnb/tools/cnb-mcp-server


🔌 Usage


CloudBase MCP Console

Parameter Description

list-repositories

Retrieve repositories for which the current user has the specified permission or higher

Input ParameterTypeDescription
pageoptional numberPage number
page_sizeoptional numberPage size
searchstringSearch keywords
filter_typeoptional stringRepository type: private, public, encrypted
roleoptional stringMinimum repository permission, default owner. Enumerated values: Reporter, Developer, Master, Owner
order_byoptional stringSort type, default last_updated_at. Enumerated values: created_at, last_updated_at, stars, slug_path, forks
descoptional booleanDescending

Returns: Repository information

list-group-repositories

Retrieve repositories within the group that the current user has permission to access.

Input ParameterTypeDescription
pageoptional numberPage number
page_sizeoptional numberPage size
searchstringSearch keywords
groupstringOrganization name
filter_typeoptional stringRepository type: private, public, encrypted
order_byoptional stringSort type, default last_updated_at. Enumerated values: created_at, last_updated_at, stars, slug_path, forks
descoptional booleanDescending
descendantoptional booleanEnumerated 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 ParameterTypeDescription
repoIdoptional stringrepo path

Returns: Repository information

list-issues

Query repository Issues

Input ParameterTypeDescription
repoIdoptional stringrepo path
pageoptional numberPage number
page_sizeoptional numberPage size
stateoptional stringopen or closed
keywordoptional stringSearch keywords
priorityoptional stringissue priority, enumerated values: p0, p1, p2, p3
labelsoptional stringissue labels, enumerated values: git, bug, feature
authorsoptional stringissue author
assigneesoptional stringissue assignee
updated_time_beginoptional stringissue update time range, start time, e.g. 2022-01-31
updated_time_endoptional stringissue update time range, end time, e.g. 2022-01-31
order_byoptional stringissue 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 ParameterTypeDescription
repoIdoptional stringrepo path
issueIdoptional numberissue ID

Returns: issue information

create-issue

Create an Issue

Input ParameterTypeDescription
repoIdoptional stringrepo path
titleoptional stringissue title
bodyoptional stringissue description
assigneesoptional string[]One or more Issue assignee usernames
labelsoptional string[]One or more Issue labels
priorityoptional stringissue priority, enumerated values: p0, p1, p2, p3

Returns: issue information