feat: add server version

This commit is contained in:
hiifong
2025-03-16 15:22:57 +08:00
parent c900e6b4c3
commit 82b02fa9f1
5 changed files with 42 additions and 6 deletions

View File

@@ -14,13 +14,13 @@ const (
)
var (
GetMyReposTool = mcp.NewTool(
ListMyReposTool = mcp.NewTool(
ListMyReposToolName,
mcp.WithDescription("List My Repositories"),
)
)
func MyUserReposFn(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
func ListMyReposFn(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
opts := gitea.ListReposOptions{
ListOptions: gitea.ListOptions{
Page: 1,