Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.
Interactive Workshop
Configure Claude Desktop to spawn your MCP server — understand the config file, absolute paths, and how to verify a successful connection.
Claude Desktop reads this JSON file at startup to spawn MCP server processes.
1{
2 "mcpServers": {
3 "my-server": {
4 "command": "/usr/local/bin/node",
5 "args": ["/Users/you/projects/my-server/index.js"],
6 "env": {
7 "NODE_NO_WARNINGS": "1"
8 }
9 },
10 "another-server": {
11 "command": "/usr/local/bin/node",
12 "args": ["/Users/you/projects/another-server/dist/index.js"],
13 "env": {
14 "NODE_NO_WARNINGS": "1",
15 "API_KEY": "your-api-key-here"
16 }
17 }
18 }
19}claude-desktopvalidate_configValidate a Claude Desktop config entry — check for common mistakes
Multiple choice — select an answer to see the explanation.
Why must Claude Desktop be fully restarted when you change your MCP server?