{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreigi2iefznp6juhf4jr763rgdhoi2dlny27bi4jtpuwc6fafbuvrga",
    "uri": "at://did:plc:pgryn3ephfd2xgft23qokfzt/app.bsky.feed.post/3mhs335kf3w72"
  },
  "path": "/t/where-to-set-environment-variable-for-mcp-client-tutorial/174569#post_1",
  "publishedAt": "2026-03-24T06:59:16.000Z",
  "site": "https://discuss.huggingface.co",
  "tags": [
    "Gradio as an MCP Client"
  ],
  "textContent": "I am following the tutorial: Gradio as an MCP Client\n\nWhere can I set the environment variable after creating the access token such that it can run in the space?\nmodel = InferenceClientModel(token=os.getenv(“HUGGINGFACE_API_TOKEN”))",
  "title": "Where to set environment variable for mcp-client tutorial?"
}