By the end of this lesson you will know where each server setting is saved, keep tokens out of files you share, give every server the smallest access that works, and spot prompt injection before it hurts you.
You need: at least one server from the starter servers lesson · Time: 9 minutes
When you add a server, your agent saves it somewhere. Where it is saved decides who gets it and in which projects. Claude Code calls this the scope:
Local and user stay on your laptop. Project travels with your code to everyone. You pick the scope with
--scope local,--scope projector--scope userwhen you add the server. The other agents have the same idea with different files:Agent Only for you Shared with the project Codex ~/.codex/config.toml.codex/config.toml(trusted projects only)OpenCode your global OpenCode config opencode.jsonin the projectCursor ~/.cursor/mcp.json.cursor/mcp.jsonMatch them Match each need with the Claude Code scope
Tap an item on the left, then its meaning on the right.
Why?A file in the project folder ends up on GitHub with your code. Anything written in it, including a token, is shared with everyone who can see the repo, sometimes the whole internet.
Log in free to read the rest of this lesson
Every lesson is free. A free account unlocks all of them and saves your progress.
Still to come in this lesson:
- Keep tokens out of shared files
- Give every server the smallest access
- Approval prompts: when to say yes
- Prompt injection: when data gives orders
- Recap