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.
`s.srv` can be set via `WithHTTPServer`. so if we end up using `WithHTTPServer` and _then_ invoke `Start`, `s.srv` will be overwritten ## Summary by CodeRabbit - **Bug Fixes** - Improved...
## Summary by CodeRabbit - **Bug Fixes** - Improved session termination handling so that event processing stops immediately when a session is closed, resulting in a more responsive and efficient...
this fixes an issue where the child process is created successfully, but immediately crashes.The client did not detect the failure. ## Summary by CodeRabbit - **Bug Fixes** - Improved handling...
## Summary by CodeRabbit - **New Features** - Introduced enhanced flexibility in configuring server connections by allowing users to specify a custom HTTP client for improved control over request handling....
mcp.RoleSystem mcp.NewPromptMessage( mcp.RoleSystem, mcp.NewTextContent("You are a SQL expert. Help construct efficient and safe queries."), )
I try to test with external server like shit: ``` "sqlite": { "command": "uvx", "args": [ "mcp-server-sqlite", "--db-path", "/tmp/foo.db" ] }, ``` It's a stdio one, but I cannot close...
The addition of the unexported `sendRequest` method prevents external packages from implmenting the `MCPClient` interface. Since it is only used by the unexported `listByPage`, create an unexported `mcpClient` interface, which...
Shouldn't it be the job of the *StdioMCPClient.Close() routine to terminate the cmd subprocess and return instead of waiting for cmd subprocess to close itself?
Configures the SSE server to append the original request's RawQuery to message endpoint. The `WithAppendQueryToMessageEndpoint` configures the SSE server to append the query string of the original request to the...
fix deadlock issue ## Summary by CodeRabbit - **Bug Fixes** - Improved internal process stability to ensure proper resource management, reducing the risk of unexpected service interruptions.