Hey everyone, I wanted to try out the MCP tool pro...
# ask-questions
b
Hey everyone, I wanted to try out the MCP tool provided in cursor, but when I set it up it says 0 tools enabled. Any clues what I'm doing wrong?
f
@strong-mouse-55694?
s
@better-barista-18500 I'm guessing something in the config is missing. Are you able to share your config? It's what shows when you click the edit (pencil) button. For reference, here's mine on my machine:
Copy code
{
  "mcpServers": {
    "growthbook": {
      "command": "npx",
      "args": ["-y", "@growthbook/mcp"],
      "env": {
        "GB_API_KEY": "secret_admin_SECRET",
        "GB_API_URL": "<http://localhost:3100>",
        "GB_APP_ORIGIN": "<http://localhost:3000>",
        "GB_USER": "Ryan"
      }
    },
}
Remember not to share any sensitive info.
b
Copy code
{
  "mcpServers": {
    "growthbook": {
      "command": "wsl bash -ic",
      "args": [
        "npx",
        "-y",
        "@growthbook/mcp"
      ],
      "env": {
        "GB_API_KEY": "secret_admin_VALID_SECRET",
        "GB_USER": "Developer"
      }
    }
  }
}
s
Thanks Viktor. Are you using GrowthBook cloud?
I haven't used WSL much with MCP. Have you had success with other servers?
b
Yes, GB Cloud and yes, I have had success with other MCP tools.
s
Thanks for the response. Let me try this out on my Windows machine and see if I can replicate.
👀 1
b
any updates on that? I just tried it again still says 0 tools enabled
This is the latest configuration I tried and think is what I have. { "mcpServers": { "growthbook": { "command": "wsl bash -ic", "args": ["npx", "-y", "@growthbook/mcp"], "env": { "GB_API_KEY": "secret_admin_API_KEY_USED_FOR_LOCAL", "GB_USER": "here I tried with the u_ from owner prop", "GB_API_URL": "https://api.growthbook.io/api/v1/", "GB_APP_ORIGIN": "https://cdn.growthbook.io" } } } }
Not sure If I need the GB_API_URLor the GB_APP_ORIGIN and where do they come from exactly.
s
If you're using GrowthBook cloud, you can omit those env variables. I'll say that I found it easier to run this directly on Windows (not WSL), because it had trouble locating node and setting the env variables. You need to have node installed on Windows, but then you can just do (with your key and user)
Copy code
"command": "npx",
"args": ["-y", "@growthbook/mcp"]
b
it's cloud, the simpler version doesnt work on my machine as It doesnt find the npx for some reason, but other MCPs work this way. What about the user - is it the Name of the user account or some id or it's not the issue?
s
hmm. so user can be any string like "Viktor". What error do you get? Which other servers are you using that work with npx? I can't imagine them being built too differently, so I'd like to see how they're going about things
b
, "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/home/viktor/projects/'" ] }, "fetch": { "command": "/home/viktor/.local/bin/uvx", "args": [ "mcp-server-fetch" ] }, "git": { "command": "/home/viktor/.local/bin/uvx", "args": [ "mcp-server-git" ] }, "browser-tools": { "command": "npx", "args": [ "@agentdeskai/browser-tools-mcp@1.2.0" ] } It worked with the command you siuggested yesterday, sorry for wasting your time, and thank you for the assistance.
s
No worries! It's a new technology, so we're all still figuring it out. Let me know any feedback