Add support to ChatGPT to the dotCMS MCP server #33431
Open
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 updates the
mcp-serverto run as an HTTP server using Streamable HTTP transport, replacing the previous stdio-based approach. It introduces a new Express-based server implementation, updates environment variable handling (notably adding thePORTvariable), and revises documentation and configuration examples to reflect these changes.Core server architecture changes:
StdioServerTransportwithStreamableHTTPServerTransportand implemented an Express server that handles/mcpPOST, GET (SSE), and DELETE requests for session-based communication. Sessions are managed via a session ID, and the server now supports multiple concurrent sessions. (core-web/apps/mcp-server/src/main.ts) [1] [2] [3]expressand@types/expressto support the HTTP server. (core-web/apps/mcp-server/package.json)Configuration and documentation updates:
PORTenvironment variable, defaulting to 3000, and updated all example configurations to include it. (core-web/apps/mcp-server/README.md) [1] [2] [3] [4] [5]http://localhost:3000/mcpinstead of using stdio. (core-web/apps/mcp-server/README.md) [1] [2]These changes modernize the MCP server, making it easier to integrate with clients and tools that communicate over HTTP, and improve session management and extensibility.
This PR fixes: #33430