3 Star 15 Fork 9

开源中国/mcp-gitee-ent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
common.go 383 Bytes
一键复制 编辑 原始数据 按行查看 历史
package utils
import (
"context"
"regexp"
"github.com/mark3labs/mcp-go/mcp"
)
// OptionHandlerFunc defines the signature for handlers that accept utils.Option.
type OptionHandlerFunc func(context.Context, mcp.CallToolRequest, ...Option) (*mcp.CallToolResult, error)
func IsAllDigits(s string) bool {
pattern := regexp.MustCompile(`^[0-9]+$`)
return pattern.MatchString(s)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/oschina/mcp-gitee-ent.git
git@gitee.com:oschina/mcp-gitee-ent.git
oschina
mcp-gitee-ent
mcp-gitee-ent
v0.1.9

搜索帮助