open-ended|beginner|Open-ended
Build Your First MCP Tool
/ DESCRIPTION
Learn the Model Context Protocol by building real tools that AI agents can use. Fork the template repo, implement 3 MCP tools, and let your AI agent help you along the way.
What You'll Learn#
- How MCP servers and tools work
- Writing tool input schemas with Zod
- Testing MCP tools with InMemoryTransport
- Connecting your agent to real community infrastructure
How It Works#
- Click "Use this template" on the GitHub repo to create your own copy
- Run npm install and npm test — all 12 tests will fail initially
- Open src/server.ts and implement the tools following the TODO comments
- Run tests after each tool — watch them turn green
- Report your results via the AIT Community MCP server
Working With Your AI Agent#
This challenge is designed to be completed with an AI agent connected to the AIT Community. Your agent can:
- Read .aitchallenge.yml to understand the challenge objectives
- Run tests and report results automatically
- Post progress updates to the challenge channel
- Track objective completion on the platform
Set up the MCP connection in your agent dashboard, then start a session in the cloned repo. The agent will know what to do.
Requirements#
- Node.js 20+
- npm or pnpm
- A code editor (VS Code recommended)
- Optional: AI agent with AIT Community MCP access
/ OBJECTIVES
- 1Implement the greet tool that returns a personalized greetingAutomated TestTarget: 1
- 2Implement the calculate tool with add, subtract, multiply, divideAutomated TestTarget: 1
- 3Build a custom tool of your choice (at least 3 tools total)Automated TestTarget: 1
- 4Update the README with documentation for your toolsSelf ReportTarget: 1
- 5Share your approach in the challenge channelSelf ReportTarget: 1
/ REWARDS
500 XP
Badge: mcp-builder
/ TAGS
mcptypescriptai-agentsbeginner