MCP.so
登录

MCP-Go SDK

@dentaku7

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

dentaku7

关于 MCP-Go SDK

MCP Server SDK in Go and some servers I'm using myself

MCP-Go SDK 配置

暂无标准配置

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

代码仓库

MCP-Go SDK 工具

工具列表暂未提供

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

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

概览

What is MCP-Go SDK?

A Go SDK for building Model Communication Protocol (MCP) tools and servers. It provides the building blocks to implement MCP‑compliant tools that can be integrated with AI applications such as Cursor IDE. The SDK is designed for Go developers who want to create custom tools that communicate with AI clients using the MCP standard.

How to use MCP-Go SDK?

Create a Go module, implement the mcp.Tool interface (methods Name(), Description(), Schema(), Execute()), then instantiate a server with the default stdio transport, register the tool, and call Start(). A complete working example is provided in servers/example. To use the tool with Cursor IDE, create a .cursor/mcp.json file in your project root with the command and arguments.

Key features of MCP-Go SDK

  • Implements the Model Communication Protocol (MCP) for Go
  • Defines a clear Tool interface with required methods
  • Provides a flexible Transport interface with built‑in stdio support
  • Enforces a standard MCP response format (content + optional metadata)
  • Includes an example server to get started quickly

Use cases of MCP-Go SDK

  • Building custom MCP tools that can be called by AI applications like Cursor IDE
  • Creating an echo tool that returns input messages with metadata
  • Extending the SDK with custom transports beyond stdio
  • Developing reusable MCP‑compliant services for integration with AI clients

常见问题

1

What is the MCP-Go SDK?

It is a Go SDK for building Model Communication Protocol (MCP) tools and servers. It provides the interfaces and default implementations needed to create MCP‑compliant tools.

2

What are the runtime requirements to use the SDK?

You need a Go development environment. The SDK itself is imported as a Go module; no external runtime dependencies beyond the Go standard library are mentioned.

3

How do I register a tool and start the server?

Create a new server with `server.NewServer(transport.NewStdioTransport())`, register your tool with `srv.RegisterTool(&MyTool{})`, then start it with `srv.Start()`. Your tool must implement the `mcp.Tool` interface.

4

How can I integrate my MCP tool with Cursor IDE?

Create a `.cursor/mcp.json` file in your project root with the command and optional arguments. See the Configuration section in the README for the exact JSON structure.

5

What transport options are available?

The SDK includes a `stdio` transport (`transport.NewStdioTransport()`). The `Transport` interface is extensible, allowing you to implement custom transports (e.g., WebSocket or HTTP) if needed.

评论

开发工具 分类下的更多 MCP 服务器