Skip to content

Change visibility of StdioTransport methods to protected#122

Closed
luoyue712 wants to merge 1 commit into
modelcontextprotocol:mainfrom
luoyue712:main
Closed

Change visibility of StdioTransport methods to protected#122
luoyue712 wants to merge 1 commit into
modelcontextprotocol:mainfrom
luoyue712:main

Conversation

@luoyue712
Copy link
Copy Markdown
Contributor

@luoyue712 luoyue712 commented Oct 27, 2025

Hi, I need to extend StdioTransport because the framework I'm using has an event loop with stream read and write event listening capabilities, which can perfectly replace while (!feof($this->input)). However, some methods in StdioTransport are not protected, preventing me from implementing the required logic.

@luoyue712 luoyue712 changed the title Change visibility of StdioTransport methods and properties to protected Change visibility of StdioTransport methods to protected Oct 27, 2025
@chr-hertel
Copy link
Copy Markdown
Member

How about decorating it or implementing a separate transport? which framework are you referring to?

@luoyue712
Copy link
Copy Markdown
Contributor Author

luoyue712 commented Oct 27, 2025

How about decorating it or implementing a separate transport? which framework are you referring to?

The framework I mentioned is webman, which encapsulates different event loops into a unified interface, such as Swoole, Swow, and Fiber.

@luoyue712 luoyue712 closed this Oct 28, 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.

2 participants