Skip to content

Conversation

@sandsc
Copy link

@sandsc sandsc commented Nov 20, 2025

add --host parameter for streamable-http server to support host mcp-run-python in docker.

Copy link
Contributor

@DouweM DouweM left a 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.

http_host: str | None = None,
dependencies: list[str] | None = None,
return_mode: Literal['json', 'xml'] = 'xml',
return_mode: Literal["json", "xml"] = "xml",
Copy link
Contributor

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?

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.')
Copy link
Contributor

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"

if (args[0] === 'stdio') {
await runStdio(deps, flags['return-mode'])
return
await runStdio(deps, flags['return-mode']);
Copy link
Contributor

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?

allow_networking: bool = True,
) -> list[str]:
args = ['run']
args = ["run"]
Copy link
Contributor

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?

@DouweM DouweM changed the title feat: add [--host] parameter for streamable-http mode. Add --host argument for Streamable HTTP mode Nov 28, 2025
@DouweM DouweM enabled auto-merge (squash) November 28, 2025 20:56
auto-merge was automatically disabled December 4, 2025 03:34

Head branch was pushed to by a user without write access

@DouweM
Copy link
Contributor

DouweM commented Dec 9, 2025

@sandsc Please have a look at the linter check

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