Replies: 2 comments
-
I believe we would ned to see your project in order to determine what is going on here. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@andrewlayer here is a link to the project https://github.com/MCP-Forge/nutritionix-mcp-server |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
I created one MCP server app with Python. First I tried to use environment variables to store API KEY. I implemented some code, added the MCP server to the configurations in Claude settings. Here is the example config:
{ "mcpServers": { "your-mcp-server": { "command": "uvx", "args": [ "your-mcp-sever", ], "env": { "DB_HOST": "HOST", ..... } } } }
With that configuration the app does not load the environment variables. I can see other MCP servers, which are on TypeScript and npx use similar configuration settings.
I fixed my problem with using of args and created the MCP server app, but I would like to understand - is it the problem in my configuration? Am I missing something with the usage of uv? What is the best practice to pass secrets to MCP server using STDIO when using Python and uv?
Beta Was this translation helpful? Give feedback.
All reactions