-
Notifications
You must be signed in to change notification settings - Fork 18
Add --host argument for Streamable HTTP mode
#27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
DouweM
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sandsc Thanks, the changes generally look good, but please revert the changes to quotes, rebase on main, and fix the merge conflicts.
mcp_run_python/main.py
Outdated
| http_host: str | None = None, | ||
| dependencies: list[str] | None = None, | ||
| return_mode: Literal['json', 'xml'] = 'xml', | ||
| return_mode: Literal["json", "xml"] = "xml", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please revert the changes to quotes?
mcp_run_python/_cli.py
Outdated
| formatter_class=argparse.RawTextHelpFormatter, | ||
| ) | ||
|
|
||
| parser.add_argument('--host', type=str, help='Host to bind the HTTP server to (default: 127.0.0.1). Use 0.0.0.0 for Docker.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implies a bit too strongly that it's Docker-specific; what do you think about "Use 0.0.0.0 to bind to all interfaces, e.g. when using Docker"
mcp_run_python/deno/src/main.ts
Outdated
| if (args[0] === 'stdio') { | ||
| await runStdio(deps, flags['return-mode']) | ||
| return | ||
| await runStdio(deps, flags['return-mode']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've got a bunch more linter edits here, including the import sorting up top. can you please revert that so the PR only has the necessary changes?
mcp_run_python/main.py
Outdated
| allow_networking: bool = True, | ||
| ) -> list[str]: | ||
| args = ['run'] | ||
| args = ["run"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these edits should really not be necessary, can you please make the diff as small as possible?
--host argument for Streamable HTTP mode
Head branch was pushed to by a user without write access
|
@sandsc Please have a look at the linter check |
add --host parameter for streamable-http server to support host mcp-run-python in docker.