MCP.so
登录

MCP Go

@OkutaniDaichi0106

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

OkutaniDaichi0106

关于 MCP Go

A library for establishing MCP server.

MCP Go 配置

暂无标准配置

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

代码仓库

MCP Go 工具

工具列表暂未提供

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

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

概览

What is MCP-Go?

MCP-Go is a Go implementation of the Model Context Protocol (MCP), a lightweight protocol for efficient communication between AI models and applications. It provides a robust framework with client-server architecture, concurrent design, and type-safe APIs, suitable for developers building AI-integrated systems in Go.

How to use MCP-Go?

Install via go get github.com/OkutaniDaichi0106/mcp-go. Use the mcp.NewServer() or mcp.NewClient() factory, register tools/resources/prompts with handler functions, then create a transport (Stdio, HTTP, or custom) and call Accept() (server) or Dial() (client) to obtain a session.

Key features of MCP-Go

  • Client-Server Architecture with full implementation of both roles
  • Transport Flexibility via Stdio, WebSockets, or HTTP
  • Concurrent Design using Go’s goroutines and channels
  • Type-Safe APIs to prevent runtime errors
  • Modular Components with a handler-based design pattern
  • Session Management with proper lifecycle handling

Use cases of MCP-Go

  • Building MCP servers that expose tools, resources, and prompts to AI models
  • Creating MCP clients to consume capabilities from MCP servers
  • Enabling standardized message exchange between AI models and applications

常见问题

1

What protocol version does MCP-Go implement?

It implements the Model Context Protocol specification v2025-03-26.

2

What transport methods are supported?

MCP-Go supports Standard I/O, WebSockets, and HTTP transports.

3

How do I install MCP-Go?

Install by running `go get github.com/OkutaniDaichi0106/mcp-go` in your Go project.

4

What is the license?

MCP-Go is licensed under the MIT License.

5

Where can I find API documentation?

Detailed API documentation is available at GoDoc (https://godoc.org/github.com/OkutaniDaichi0106/mcp-go).

评论

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