MCP.so
登录

Go MCP Server

@virgoC0der

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

virgoC0der

关于 Go MCP Server

Make your own MCP servers with Golang

Go MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Go MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Go-MCP?

Go-MCP is a Go implementation of the Model Context Protocol (MCP), a protocol for building AI services. It defines three core primitives: Prompts, Tools, and Resources. It provides a type-safe API with multiple transport options and unified response handling.

How to use Go-MCP?

Install via go get github.com/virgoC0der/go-mcp. Create a server by implementing the MCPService interface and calling mcp.NewServer with options like Address and Type. Create a client with mcp.NewClient, connect, and use the service interface to interact with prompts, tools, and resources.

Key features of Go-MCP

  • Complete MCP protocol implementation with JSON-RPC 2.0 support
  • Type-safe API with interfaces for Prompts, Tools, and Resources
  • Multiple transport options: HTTP, SSE, WebSocket, and stdio
  • Unified response structure across all transport layers
  • Cursor-based pagination for list operations
  • Change notifications and resource subscriptions

Use cases of Go-MCP

  • Build an AI service that exposes prompts, tools, and resources via MCP
  • Create a client to interact with any MCP-compatible server
  • Develop a custom server for an application like a weather service or app launcher
  • Integrate paginated resource listing into an AI assistant workflow

常见问题

1

What transports does Go-MCP support?

Go-MCP supports HTTP, SSE (Server-Sent Events), WebSocket, and stdio transports, configurable via the `Type` option in server and client options.

2

Does Go-MCP support pagination?

Yes. All list operations (ListPrompts, ListTools, ListResources) use cursor-based pagination. The client can pass an empty cursor for the first page and use `NextCursor` from the result to fetch subsequent pages.

3

Can I subscribe to resource changes?

Yes. Go-MCP supports resource subscriptions via the `SubscribeToResource` method on the service interface. The server must declare the `Subscribe` capability.

4

What MCP specification version is implemented?

Go-MCP has been updated to support the Model Context Protocol 2025-03-26 specification, including JSON-RPC 2.0, enhanced multimodal content, and rich server capability declarations.

5

Is JSON-RPC supported?

Yes. Go-MCP provides full JSON-RPC 2.0 support with

评论

其他 分类下的更多 MCP 服务器