Skip to content

Conversation

2niuhe
Copy link
Contributor

@2niuhe 2niuhe commented Aug 2, 2025

2niuhe added 3 commits August 2, 2025 17:41
…ntation

- Added support for Express.js to handle SSE and Streamable transport protocols.
- Introduced command line options for transport type, port, and endpoint configuration.
- Updated README to include new usage instructions for desktop applications and transport options.
- Added health check and message endpoints for improved server functionality.
- Included automatic server instance creation for each request to ensure stateless operation.
…ions

- Implemented global error handling for uncaught exceptions and unhandled promise rejections.
- Added logging for errors to improve debugging and application stability.
@hustcc
Copy link
Owner

hustcc commented Aug 2, 2025

Has it been tested or tried out by some mcp clients?

@2niuhe
Copy link
Contributor Author

2niuhe commented Aug 2, 2025

Has it been tested or tried out by some mcp clients?

yes, sse and streamable-http transport tested with librechat and mods client.

i also built a docker image

docker pull 2niuhe/mcp-echart:latest

# sse transport
docker run -dit -p 3033:3033 --name mcp-echart 2niuhe/mcp-echart:latest node build/index.js -t sse

# streamable-http transport
# docker run -dit -p 3033:3033 --name mcp-echart 2niuhe/mcp-echart:latest node build/index.js -t streamable

docker logs -f mcp-echart
image

@hustcc
Copy link
Owner

hustcc commented Aug 2, 2025

also help to add the docker config with next pr?

@hustcc
Copy link
Owner

hustcc commented Aug 2, 2025

you can add yourself in contribution section in readme.

@2niuhe
Copy link
Contributor Author

2niuhe commented Aug 2, 2025

also help to add the docker config with next pr?

OK

@hustcc hustcc merged commit ca8c527 into hustcc:main Aug 3, 2025
1 check passed
@hustcc
Copy link
Owner

hustcc commented Aug 3, 2025

@2niuhe 感谢贡献,已经发包 0.5.0 了。

另外,你这个写法不错,如果有空,也可以帮忙把 mcp-mermaid 的 sse 和 streamable 写法改成你中方式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Support MCP with SSE and Streaming HTTP
2 participants