Skip to content

feat(setup mcp): add initial mcp integration - #678

Open
akulistus wants to merge 6 commits into
masterfrom
feat/setup-mcp
Open

akulistus wants to merge 6 commits into
masterfrom
feat/setup-mcp

Conversation

@akulistus

Copy link
Copy Markdown

Setup MCP server integration

@akulistus
akulistus added this pull request to stack #682 September 16, 2026 00:43
* POST /integration/mcp
* Initiate MCP integration connection
*/
router.post("/", async (req, res, next) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MCP Streamable HTTP transport defines GET requests to establish SSE streams and DELETE requests to terminate sessions, but mounting only router.post causes Express to reject them with 404 Not Found. Using router.all allows NodeStreamableHTTPServerTransport to handle all standard MCP HTTP methods.

Suggested change
router.post("/", async (req, res, next) => {
router.all("/", async (req, res, next) => {

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.

2 participants