Replies: 4 comments
-
you can directly get 'MY_ENV' by os.Getenv('MY_ENV') in your code logic |
Beta Was this translation helpful? Give feedback.
-
That doesn't make sense for SSE. The server doesn't have access to an environment variable on the client. How are we supposed to set API Keys? |
Beta Was this translation helpful? Give feedback.
-
You'd usually set headers in the MCP config, though I'm not sure if Cursor supports this yet (as of a couple weeks ago, they did not). |
Beta Was this translation helpful? Give feedback.
-
Goose doesn't support it either. How are people passing API_Keys from Cursor and Goose? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
RT.
sorry that i don't find any examples of read server process environment variables by using mcp-go
{ "mcpServers": { "mymcp":{ "url": "http://localhost:8080/sse", "env": { "MY_ENV": "value" } } } }
how to read the MY_ENV value
Beta Was this translation helpful? Give feedback.
All reactions