You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support mcp sse/streamable http transport (#21)
* feat: enhance MCP server with new transport options and update documentation
- 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.
* feat: add error handling for uncaught exceptions and unhandled rejections
- Implemented global error handling for uncaught exceptions and unhandled promise rejections.
- Added logging for errors to improve debugging and application stability.
* fix: remove error logging on server start failure
* chore: add contributor
---------
Co-authored-by: hustcc <i@hust.cc>
To use with `Desktop APP`, such as Claude, VSCode, Cline, Cherry Studio, and so on, add the MCP server config below. On Mac system:
25
27
26
28
```json
@@ -58,6 +60,46 @@ On Window system:
58
60
Also, you can use it on [modelscope](https://www.modelscope.cn/mcp/servers/hustcc/MCP-ECharts), [glama.ai](https://glama.ai/mcp/servers/@hustcc/mcp-echarts), [smithery.ai](https://smithery.ai/server/@hustcc/mcp-echarts) or others with HTTP, SSE Protocol.
59
61
60
62
63
+
## 🚰 Run with SSE or Streamable transport
64
+
65
+
Install the package globally.
66
+
67
+
```bash
68
+
npm install -g mcp-echarts
69
+
```
70
+
71
+
Run the server with your preferred transport option:
-[2niuhe](https://github.com/2niuhe): Support MCP with SSE and Streaming HTTP. [#17](https://github.com/hustcc/mcp-echarts/issues/17)
129
172
-[susuperli](https://github.com/susuperli): Use `MinIO` to save the chart image base64 and return the url. [#10](https://github.com/hustcc/mcp-echarts/issues/10)
130
173
-[BQXBQX](https://github.com/BQXBQX): Use `@napi-rs/canvas` instead node-canvas. [#3](https://github.com/hustcc/mcp-echarts/issues/3)
131
174
-[hustcc](https://github.com/hustcc): Initial the repo.
0 commit comments