feat: add go helper client and mcp tools

This commit is contained in:
zhaoyilun
2026-07-05 19:19:07 +08:00
parent 63cda718ba
commit 8956f331bf
10 changed files with 1014 additions and 0 deletions

22
cmd/isphere-mcp/main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"context"
"log"
"os"
"os/signal"
"github.com/modelcontextprotocol/go-sdk/mcp"
"isphere-ai-bridge/internal/mcpserver"
)
func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
defer stop()
server := mcpserver.NewServer()
if err := server.Run(ctx, &mcp.StdioTransport{}); err != nil {
log.Fatalf("isphere mcp server stopped: %v", err)
}
}