Browse the study library +
← All practice questions

Where should a team-shared MCP server (with a token) be configured, and how should the token be referenced?

Show answer and explanation

Answer: B

Project-scoped .mcp.json is shared via version control; ${ENV_VAR} expansion keeps the secret out of the repo. ~/.claude.json is user scope (not shared) and hard-coding tokens is unsafe.

پروجیکٹ والا `.mcp.json` ورژن کنٹرول کے ذریعے سب کے ساتھ شیئر ہوتا ہے؛ `${ENV_VAR}` استعمال کرنے سے راز (secret) repo میں نہیں جاتا۔ `~/.claude.json` صرف آپ کا ذاتی ہے (شیئر نہیں ہوتا)، اور ٹوکن براہِ راست لکھنا محفوظ نہیں۔

One practice question a week

Get a new exam-style question with a clear explanation in your inbox. Free, no spam, unsubscribe any time.

We only use your email for these updates. See our privacy policy.