mcp-go
mcp-go copied to clipboard
A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
## Goal I'm implementing the **StreamableHTTP** transport protocol for the MCP client. The existing `stdio-client` and `sse-client` share a significant amount of duplicated code in the application-layer protocol implementation (e.g.,...
When there is no input to a tool, the `Properies` map is `nil` if the Tool is not created using `NewTool`. This causes the `property` field to be set to...
Dear developers, While using mcp-go, I encountered 2 problems: 1. After creating an mcp server using sse or stdio, add a NotificationHandler to the server. How to use mcp-go to...
By default, the SSE (Server-Sent Events) endpoint is `/sse`. But I want to use different endpoints like `/xxxxx/sse` or `/yyyyy/sse`, similar to how Gin handles routes like `/:uid/sse`. I’d like...
Hello. I noticed that the 3.26 version specification added a message field for progress updates. However, I couldn’t find it in the current Golang SDK. This PR added an optional...
While trying out [mcp host](https://github.com/mark3labs/mcphost) with model `--model ollama:llama3.2:latest` and the mcp calculator server example, I noticed the tool call sometimes gets stuck. After some investigation, I figured out that...
### Overview This change implements custom HTTP headers support for the SSE MCP Client into the `Start` method of the SSE client, particularly useful for **authentication scenarios** with bearer token....
## Description This PR adds support for dynamic route parameters in the SSE server, similar to the routing parameters in the Gin framework. This enhancement allows users to define custom...
   The mcp server runs as in the example。-> https://github.com/mark3labs/mcp-go/blob/main/examples/everything/main.go
Hi! I'm wondering if maybe the package can support even a lower go version such as go1.18 so I forked the repo and tested by myself. It seems fine (passed...