-
found API_TOKEN use env var. how troubleshoot it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@inevity You can use {
"github": {
"headers": {
"Authorization": "Bearer ${GITHUB_ACCESS_TOKEN}"
},
"url": "https://api.githubcopilot.com/mcp/",
}
} In case you store secret in some vault, you can also use {
"github": {
"headers": {
"Authorization": "Bearer ${cmd: echo 'mysecret'}"
},
"url": "https://api.githubcopilot.com/mcp/",
}
} Refer to https://ravitemer.github.io/mcphub.nvim/mcp/servers_json.html#universal-placeholder-syntax |
Beta Was this translation helpful? Give feedback.
-
I'm already using this PWD variable, but it doesn't seem to work. the json config: "filesystem-current": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"${PWD}"
],
"name": "Filesystem (Current Dir)",
"description": "File operations for current working directory"
}, |
Beta Was this translation helpful? Give feedback.
@inevity You can use
${}
placeholder for anyenv
vars. MCP Hub will replace${VAR}
with actual variable. For e.g:In case you store secret in some vault, you can also use
${cmd:}
placeholders:Refer to https://ravitemer.github.io/mcphub.nvim/mcp/servers_json.html#universal-placeholder-syntax