32 Star 310 Fork 86

开源中国/mcp-gitee

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
common_options.go 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
JJ-H 提交于 2025-07-24 10:39 +08:00 . feat: add security_hole option for issue
package issues
import "github.com/mark3labs/mcp-go/mcp"
var BasicOptions = []mcp.ToolOption{
mcp.WithString(
"owner",
mcp.Description("The space address to which the repository belongs (the address path of the enterprise, organization or individual)"),
mcp.Required(),
),
mcp.WithString(
"repo",
mcp.Description("The path of the repository"),
mcp.Required(),
),
}
var BasicIssueOptions = []mcp.ToolOption{
mcp.WithString(
"title",
mcp.Description("The title of the issue"),
mcp.Required(),
),
mcp.WithString(
"body",
mcp.Description("The description of the issue"),
),
mcp.WithString(
"issue_type",
mcp.Description("Enterprise custom task type, non-enterprise users must consider it as 'task'"),
),
mcp.WithString(
"assignee",
mcp.Description("The personal space address of the issue assignee"),
),
mcp.WithString(
"collaborators",
mcp.Description("The personal space addresses of issue collaborators, separated by commas"),
),
mcp.WithString(
"milestone",
mcp.Description("The milestone number"),
),
mcp.WithString(
"labels",
mcp.Description("Comma-separated labels, name requirements are between 2-20 in length and non-special characters. Example: bug,performance"),
),
mcp.WithString(
"program",
mcp.Description("Project ID"),
),
mcp.WithBoolean(
"security_hole",
mcp.Description("Set as a private issue (default is false)"),
mcp.DefaultBool(false),
),
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/oschina/mcp-gitee.git
git@gitee.com:oschina/mcp-gitee.git
oschina
mcp-gitee
mcp-gitee
v0.1.14

搜索帮助