mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-05 01:27:28 +00:00
[PR #120] fix: mcp stdio transport crashes with unexpected 'host' keyword argument #129
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/open-terminal#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-terminal/pull/120
Author: @Heliopause0916
Created: 5/5/2026
Status: 🔄 Open
Base:
main← Head:fix/mcp-empty-auth-header-issue-115📝 Commits (3)
89f666dfix: mcp command sends empty Authorization header (#115)214d0a4fix(cli): skip host/port resolution for stdio transport in MCP command16dbe8bfix(mcp): allow stdio transport without explicit API key📊 Changes
3 files changed (+79 additions, -3 deletions)
View changed files
📝
.gitignore(+3 -0)📝
README.md(+31 -0)📝
open_terminal/cli.py(+45 -3)📄 Description
Fixes Bug 2 from #115 — stdio transport crashes with
TypeError: TransportMixin.run_stdio_async() got an unexpected keyword argument 'host'This is a follow-up fix to PR #116, which addressed the empty Authorization header issue but left the stdio transport crash unresolved.
Problem
When running
open-terminal mcp --transport stdio, the command crashes with:Root cause: The
mcp_server.run()call unconditionally passeshostandportarguments regardless of the transport type. FastMCP's stdio transport does not accept these parameters.Solution
Conditionally pass
hostandportonly for non-stdio transports:Testing
Verified on Windows:
Related
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.