HI guys do you have any idea how to use this new feature?
2 Likes
Same here, the screenshot seems okay but not enough info and explanation on how it works and where to find good commands and servers
Can you provide more specific details how you do that? So that we can start brainstorming too?
Hey, we have added a documentation page for this now, to learn more here:
Is there a way to provide environmental variables to MCP Servers.
Iām trying to use the Github one but it requires a personal access token
GITHUB_PERSONAL_ACCESS_TOKEN=TOKEN_HERE npx -y @modelcontextprotocol/server-github
This does not work
To answer my own question you have to create a shell wrapper. I asked Cursor to write it for me.
#!/bin/bash
export GITHUB_PERSONAL_ACCESS_TOKEN=TOKEN_HERE
npx -y @modelcontextprotocol/server-github
Save it as github-mcp.sh and chmod +x it
3 Likes
I found the when you add env
before the cmd, then i works.
like this :
env TAVILY_API_KEY=your-api-key npx -y tavily-mcp@0.1.3