13 — Quiz: build your own harness
Pick an answer. The quiz checks it and shows the explanation.
1. Your SDK script runs a query. Which component actually runs your lookup_service handler when Claude asks for it?
2. You print every message from query(). Which order shows one tool call and a final answer?
3. You register a server as mcpServers: { inventory: server } with a tool named lookup_service. What do you put in allowedTools?
4. A teammate sets allowedTools: ["Read"] and permissionMode: "bypassPermissions", and expects Claude to only read. What happens when Claude calls Bash?
5. You want Claude to see no built-in tools at all, only your MCP tool. Which option does that?
6. Your harness has no settingSources option. Your project has a CLAUDE.md and a .claude/settings.json with hooks. What does the SDK load?
7. Your tool deletes old log files, and you mark it readOnlyHint: true. What does the hint change?
8. In dontAsk mode, Claude calls a tool that no allow rule covers and that needs approval. What happens?
9. You list mcp__inventory__lookup_service in both allowedTools and disallowedTools. What happens when Claude tries the tool?
Quiz Progress
0 / 0 questions answered (0%)
0 correct