Skip to main content
Back to Exercises
Partnership intermediate 40 min

MCP Setup

Configure MCP servers, skills, and hooks for a project.

Objectives

  • Create an MCP server configuration
  • Define a custom skill
  • Set up a useful hook
  • Validate tool integration

Beads Tasks

Create these tasks in Beads before starting. You learn Beads by using Beads.

bd create "Praxis: Configure MCP for [project]" --type=feature--labels=learn,partnership
bd create "Create .mcp.json configuration" --type=task--labels=learn
bd create "Define a domain-specific skill" --type=task--labels=learn
bd create "Set up pre-commit or validation hook" --type=task--labels=learn
bd create "Test tool integration end-to-end" --type=task--labels=learn

Claude Code Prompt

Copy this prompt into Claude Code to build YOUR own version:

## Setup: Track this exercise with Beads

```bash
bd create "Praxis: Configure MCP for [project]" --type=feature --labels=learn,partnership
bd create "Create .mcp.json configuration" --type=task --labels=learn
bd create "Define a domain-specific skill" --type=task --labels=learn
bd create "Set up pre-commit or validation hook" --type=task --labels=learn
bd create "Test tool integration end-to-end" --type=task --labels=learn
```

---

Help me configure MCP for MY project to extend Claude Code's capabilities.

I'm setting up MY tool ecosystem. Guide me through:

1. **Identify needed capabilities**:
   What operations do I frequently perform that could be automated?
   - Database queries?
   - API calls?
   - File transformations?
   - External service integrations?

2. **Configure MCP servers**:
   Edit my Claude Code settings to add MCP servers:
   ```json
   {
     "mcpServers": {
       "[my-server]": {
         "command": "npx",
         "args": ["-y", "@my-org/my-mcp-server"]
       }
     }
   }
   ```

   What servers would help MY workflow?

3. **Create a custom skill**:
   Write a skill file for a domain-specific operation:
   ```markdown
   # .claude/skills/[my-skill].md

   Use this skill when [TRIGGER_CONDITION].

   ## Steps
   1. [First step]
   2. [Second step]
   ```

4. **Set up hooks**:
   Create hooks that enforce MY standards:
   ```json
   {
     "hooks": {
       "pre-commit": [
         { "command": "npm run lint" },
         { "command": "npm run typecheck" }
       ]
     }
   }
   ```

5. **Test the integration**:
   - Verify MCP servers connect
   - Test skill invocation
   - Validate hooks run correctly

6. **Document MY tool configuration**:
   - What tools did I add and why?
   - What skills are available?
   - What hooks enforce my standards?

Project: [YOUR_PROJECT]
Repetitive operations I want to automate: [YOUR_OPERATIONS]

Your Solution

Write code that addresses the objectives above. Apply the principles from the Partnership path.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15