Skip to content

Conversation

@cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Oct 21, 2025

What is it?

  • feat: support http transport

Notes

  • adds the ability to flip between stdio and http
  • adds additional http options for both cli and programmatic usage
     - http?: boolean;
     - port?: number;
     - host?: string;
     - allowedOrigins?: string[];
     - allowedHosts?: string[];
    
  • killExisting flag if set, should kill an existing process running on if the following conditions are met: the same port AND is the PF MCP. this is a convenience setting discovered during code audit
    • If a process is found but it's not the same MCP server (doesn't match both 'dist/index.js' and '--http'), it throws an error instead of killing it. This prevents killing unrelated processes.

jenny-s51 pushed a commit to jenny-s51/patternfly-mcp that referenced this pull request Oct 24, 2025
* Rename PF documentation directory
* Update to latest from patternfly-ai-coding
* Add more chart color info
@cdcabrera cdcabrera changed the title WIP feat: support http transport feat: support http transport Nov 13, 2025
@cdcabrera cdcabrera force-pushed the 20251021-http branch 2 times, most recently from 7150411 to e356800 Compare November 17, 2025 21:32
@cdcabrera cdcabrera marked this pull request as ready for review November 17, 2025 21:35
@cdcabrera cdcabrera force-pushed the 20251021-http branch 3 times, most recently from 6ae96bc to 4ceb97d Compare November 19, 2025 03:00
@cdcabrera
Copy link
Member Author

Parallel branch for in-progress work, https://github.com/cdcabrera/patternfly-mcp/tree/20251201-http

Aiming for closing e2e tests out today

* docs, breakout new options for http support
* build, use the pid-port package, convenience for ports already in use
* cli, move to using mode, prep for future
* index, refactor towards using session context and memo for server instances
* logger, move to session, handler clean up
* options, isolate unique identifiers to session, channelName, sessionID
* options.defaults, expand typings for http, move from DefaultSession to Session
* options, parse http args
* server.http, base http transport, route filtering, existing port/process checks
* server.logger, session setup, allow onLog listeners, clean up for handlers
* server, memoize server instance, expose onLog listener
* tests, expand unit and e2e checks for http
@cdcabrera cdcabrera merged commit 12e8734 into patternfly:main Dec 4, 2025
3 checks passed
@cdcabrera cdcabrera mentioned this pull request Dec 8, 2025
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.

1 participant