Module · Claude Engineer
MCP & Hooks
Connect Claude to your tools, and let a hook enforce the rules you keep repeating.
TOPIC 01
MCP Servers
The servers Claude can call, and the scopes they live in.
What you'll practice
- Add a Server to the Project — guided · beginner
- Decide Which Scope a Server Lives In — practice · intermediate
A command you'll meet
cat .mcp.jsonA server is a capability with a contract - and a place in your repository. Open the task below for the full walkthrough.
Hands-On Tasks in This Topic (2)
Add a Server to the Project
A project level server configuration is checked into the repository, so everyone gets the same tools. Write one.
Decide Which Scope a Server Lives In
A server can belong to one developer, to one project or to the whole machine. Write the rules for where each kind of server goes.
TOPIC 02
Hooks
The rules that run every time - and the ones that must never run silently.
What you'll practice
- Hook the Tool Calls — practice · intermediate
- Write the Safety Rules for Hooks — challenge · advanced
A command you'll meet
cat ~/claude/hooks.jsonA hook is code that runs on every step - which makes it the most dangerous place to be sloppy. Open the task below for the full walkthrough.
Hands-On Tasks in This Topic (2)
Hook the Tool Calls
A hook runs on a matching event and can act on the result. Write one that formats the code after every edit.
Write the Safety Rules for Hooks
A hook that blocks without saying why is the fastest way to lose a team's trust. Write the rules that keep hooks predictable.