feat: 建议在readme中补充一点 #128

Open
opened 2026-02-15 21:15:01 -05:00 by yindo · 0 comments
Owner

Originally created by @tonycheungzyz on GitHub (Jan 23, 2026).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

使用mcpo连接sse带token的mcp服务器时:
readme中给定的方法:
mcpo --port 8000 --api-key "top-secret" --server-type "sse" --header '{"Authorization": "Bearer token", "X-Custom-Header": "value"}' -- http://127.0.0.1:8001/sse
在windows下是跑不通的,认证通不过要进行转义如下:。
mcpo --port 8000 --api-key "top-secret" --server-type "sse" --header '{\"Authorization\": \"Bearer token\", \"X-Custom-Header\": \"value\"}' -- http://127.0.0.1:8001/sse
这样才能使用,否则会报认证失败的代码。

然而 以上代码在linux下也不能用。linux下用readme中的格式才能跑。

因此希望在readme中补充上,让新用户少走弯路,我开始在windows上调了好久,最后才发现是命令行的问题。

Desired Solution you'd like

在readme中加上windows需转义的注释。

Alternatives Considered

No response

Additional Context

No response

Originally created by @tonycheungzyz on GitHub (Jan 23, 2026). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description 使用mcpo连接sse带token的mcp服务器时: readme中给定的方法: mcpo --port 8000 --api-key "top-secret" --server-type "sse" --header '{"Authorization": "Bearer token", "X-Custom-Header": "value"}' -- http://127.0.0.1:8001/sse 在windows下是跑不通的,认证通不过要进行转义如下:。 mcpo --port 8000 --api-key "top-secret" --server-type "sse" --header '{\\"Authorization\\": \\"Bearer token\\", \\"X-Custom-Header\\": \\"value\\"}' -- http://127.0.0.1:8001/sse 这样才能使用,否则会报认证失败的代码。 然而 以上代码在linux下也不能用。linux下用readme中的格式才能跑。 因此希望在readme中补充上,让新用户少走弯路,我开始在windows上调了好久,最后才发现是命令行的问题。 ### Desired Solution you'd like 在readme中加上windows需转义的注释。 ### Alternatives Considered _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/mcpo#128