Environment Variable references in MCP Config #12216
Replies: 2 comments 3 replies
-
|
The double brackets are for variable references, to be provided from the UI. For your config, you need to use |
Beta Was this translation helpful? Give feedback.
-
|
The issue is that servers with Adding mcpServers:
karakeep:
type: stdio
command: npx
args:
- "-y"
- "@karakeep/mcp"
env:
KARAKEEP_API_ADDR: https://karakeep
KARAKEEP_API_KEY: "{{API_KEY}}"
customUserVars:
API_KEY:
title: "Karakeep API Key"
description: "Enter your personal API key for the service."
startup: falseI'll improve this so that servers with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
When using a custom user var as template in an env, the value is not being replaced properly.
Example:
When placing the API key directly in the env, everything works as expected.
I've tried to configure the API key in the MCP server's settings in an agent, as well as directly in the mcp category. Both variants lead to the issue.
Version Information
3ddf62c8e5511a2c30672dbe3e6e07bedff374e6Steps to Reproduce
See description
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions