Introduces Server-Sent Events (SSE) support to the MCP server #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces Server-Sent Events (SSE) support to the MCP server, updates dependencies, and refactors multiple tool handlers to use a
context.Context
parameter for better request handling. Key changes include enabling SSE functionality, modernizing the configuration and command-line interface, and improving code maintainability.SSE Support and Configuration Enhancements:
ENABLE_SSE
,SSE_ADDR
,SSE_BASE_PATH
) and described them inREADME.md
andsmithery.yaml
. This includes instructions for enabling SSE mode via environment variables or command-line flags. [1] [2] [3]main.go
to initialize and manage an SSE server with graceful shutdown handling. [1] [2]Dependency Updates:
github.com/mark3labs/mcp-go
to versionv0.21.1
ingo.mod
for compatibility with the new SSE features.github.com/yosida95/uritemplate/v3
as an indirect dependency.Tool Handlers Refactoring:
calendar.go
,confluence.go
,jira.go
, etc.) to acceptcontext.Context
and updated their logic to use the provided context for better concurrency and cancellation support. [1] [2] [3]Codebase Improvements:
main.go
by replacingfmt.Printf
withlog.Printf
for consistency and better log management.smithery.yaml
configuration to dynamically include SSE-related arguments based on the configuration.Documentation Updates:
README.md
to include a detailed explanation of the newly introduced SSE mode and its configuration options.