[GH-ISSUE #16] Problem in MCP with env setting & fetch #12

Closed
opened 2026-10-18 21:10:12 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @flyfox666 on GitHub (Apr 2, 2025).
Original GitHub issue: https://github.com/open-webui/mcpo/issues/16

mcp setting like follow

{
"mcpServers": {
"baidu-maps": {
"command": "uvx",
"args": ["mcp-server-baidu-maps"],
"env": {
"BAIDU_MAPS_API_KEY": "XXXX"
}
}
}
}

run code with mpo or uvx mpo

could connect and load, but no answer as follow.

Also could not use fetch

Image

Image

Originally created by @flyfox666 on GitHub (Apr 2, 2025). Original GitHub issue: https://github.com/open-webui/mcpo/issues/16 mcp setting like follow { "mcpServers": { "baidu-maps": { "command": "uvx", "args": ["mcp-server-baidu-maps"], "env": { "BAIDU_MAPS_API_KEY": "XXXX" } } } } run code with mpo or uvx mpo could connect and load, but no answer as follow. Also could not use fetch ![Image](https://github.com/user-attachments/assets/f8bd6628-ea8c-408a-a8d9-76858485c97a) ![Image](https://github.com/user-attachments/assets/96c869a2-35c1-42c5-978c-a5a785f08172)
Author
Owner

@imkebe commented on GitHub (Apr 2, 2025):

Same. it seems no ENV variables are used/passed to the mpc command.

  1. I've set up docker with .env variables - no use of OS/container env variables
  2. No use of mpc config ENV's
<!-- gh-comment-id:2771856766 --> @imkebe commented on GitHub (Apr 2, 2025): Same. it seems no ENV variables are used/passed to the mpc command. 1. I've set up docker with .env variables - no use of OS/container env variables 2. No use of mpc config ENV's
Author
Owner

@peanutsugarlove commented on GitHub (Apr 2, 2025):

It seems unable to handle the situation of optional parameters. Some parameters are optional, and if the model does not output that parameter, an error will be reported

<!-- gh-comment-id:2772475884 --> @peanutsugarlove commented on GitHub (Apr 2, 2025): It seems unable to handle the situation of optional parameters. Some parameters are optional, and if the model does not output that parameter, an error will be reported
Author
Owner

@tjbck commented on GitHub (Apr 2, 2025):

@imkebe env vars are definitely being used.

github.com/open-webui/mcpo@1670568e5a/src/mcpo/main.py (L180)

Issue seems to be unrelated to env vars.

<!-- gh-comment-id:2773940820 --> @tjbck commented on GitHub (Apr 2, 2025): @imkebe env vars are definitely being used. https://github.com/open-webui/mcpo/blob/1670568e5a4dab41bfeaaf1a0928506f3347771f/src/mcpo/main.py#L180 Issue seems to be unrelated to env vars.
Author
Owner

@tjbck commented on GitHub (Apr 2, 2025):

Please provide a concrete step-by-step guide on how to reproduce.

<!-- gh-comment-id:2773941589 --> @tjbck commented on GitHub (Apr 2, 2025): Please provide a concrete step-by-step guide on how to reproduce.
Author
Owner

@flyfox666 commented on GitHub (Apr 3, 2025):

looked at the source code, and then tried to update the pip mcpo today, a few problems have been solved, env can be used, the use of the json format, but the mcp of the baidu map has a problem, the return error, amap map can be used!

<!-- gh-comment-id:2776346603 --> @flyfox666 commented on GitHub (Apr 3, 2025): looked at the source code, and then tried to update the pip mcpo today, a few problems have been solved, env can be used, the use of the json format, but the mcp of the baidu map has a problem, the return error, amap map can be used!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/mcpo#12
No description provided.