Skip to content

feat: migrate HTTP servers to use Express.js#12

Merged
hustcc merged 4 commits into
hustcc:mainfrom
Susuperli:main
Sep 13, 2025
Merged

feat: migrate HTTP servers to use Express.js#12
hustcc merged 4 commits into
hustcc:mainfrom
Susuperli:main

Conversation

@Susuperli

Copy link
Copy Markdown
Collaborator
  • Replace raw Node.js HTTP servers with Express.js framework
  • Add comprehensive Express server utility with CORS
  • Refactor SSE and Streamable services to use Express routes
  • Add proper TypeScript types for Express middleware
  • Maintain full backward compatibility with existing MCP protocol

… improve maintainability

- Remove complex request handling logic, switch to Express framework
- Remove unnecessary cleanup functions and server factory
- Simplify SSE and Streamable server implementations
- Add CORS support
- Optimize error handling and response format
- Remove unused utility classes: InMemoryEventStore, cleanupHelpers, getBody, httpServer, and shutdownManager
- Keep utility classes that are still in use: zodToJsonSchema, renderMermaid, and logger
@joshuasundance-swca

Copy link
Copy Markdown

I tested this PR branch for integration with my LangChain app in docker compose. It works :)

Fixes #10

Susuperli and others added 2 commits September 13, 2025 13:35
- Add detailed steps for local development and global installation
- Add startup methods for different transport protocols
- Update access point information
- Add new npm scripts in package.json
@hustcc hustcc merged commit b2046fe into hustcc:main Sep 13, 2025
1 check passed
@hustcc

hustcc commented Sep 13, 2025

Copy link
Copy Markdown
Owner

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.

3 participants