Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.
This repository was archived by the owner on May 21, 2026. It is now read-only.

Currently no guidance over environment variables is given #7

Description

@adaOctopus

Hi team. First of all hats off for building mcp-use-ts. Super useful, super early.
I have a question, Im testing some remote mcp servers for my new app, but, some of them require env variables like API keys. For example, TAVILY Search requires it, how do I pass the env variables in the configuration dict?

i.e
try { const config = { mcpServers: { tavily: { command: 'npx', args: ["-y", "tavily-mcp"], env: '???????????????????????????????????????????'}, airbnb: { command: 'npx', args: ['@openbnb/mcp-server-airbnb'] }, playwright: { command: 'npx', args: ['@playwright/mcp@0.0.28'] } } }

How do I pass my environment variable KEY? do I just paste it in, or is there another format to follow? Thanksss

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions