mcp-tools-development

Create and modify MCP tools for the AI Debugger with shared constants and standardized responses.

19|2|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/ai-debugger-inc/aidb --skill mcp-tools-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-tools-development
Source: https://github.com/ai-debugger-inc/aidb/tree/main/.claude/skills/mcp-tools-development
Command: npx skills add https://github.com/ai-debugger-inc/aidb --skill mcp-tools-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides the creation and maintenance of MCP tools for the AI Debugger (AIDB), including tool schemas, handlers, decorators, and response builders. It emphasizes efficient, accurate, and scalable tool development.

Core Features & Use Cases

  • Tool Architecture: Understand the end-to-end flow from Tool Definition to MCP Response.
  • Reusable Components: Use shared constants, decorators, and response builders to ensure consistency.
  • Performance & Quality: Guidance on parameter validation, error handling, and response shape.

Quick Start

Review the Tool Architecture and Testing resources, then draft a new tool in src/aidb_mcp/tools/definitions.py and wire up handlers.

Frequently Asked Questions about mcp-tools-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create MCP tools for the AI Debugger?

Create MCP tools by defining tool schemas in `src/aidb_mcp/tools/definitions.py`, implementing handler logic, and wiring response builders. Use shared constants and decorators to ensure consistency across tool definitions, registry, handlers, responses, and test components for fast, accurate agent-tool interactions.

What's the best way to structure MCP tool handlers and responses?

MCP tool handlers should enforce core constants and enums, eliminate magic strings by reusing shared modules, and return standardized response formatting through response builders. This architecture ensures compact payloads, parameter validation, error handling, and consistent tool behavior across the AIDB server.

How do I ensure my MCP tools follow AIDB standards?

Use decorators and response builders from shared modules, validate parameters consistently, and test across MCP server components. Follow AIDB requirements that mandate code reuse, eliminate magic strings, enforce core constants, and produce fast, compact payloads with standardized response shapes.

Can I modify existing MCP tool behavior in the AI Debugger?

Yes. Modify tool behavior by updating handler logic, decorators, and response definitions in the shared MCP components. Requirements enforce code reuse and consistent patterns, so changes propagate correctly across the tool registry and maintain payload efficiency and accuracy.

What should I do if an MCP tool isn't performing as expected?

Debug by checking parameter validation, error handling in handlers, and response formatting against AIDB standards. Review tool definitions for magic strings or non-standard constants, verify decorator application, and test the tool across MCP server components to identify performance or accuracy issues.

Do I need prior knowledge of decorators and response builders to create MCP tools?

Understanding decorators and response builders helps, but start by reviewing the Tool Architecture and Testing resources in the Quick Start guide. These cover the end-to-end flow from Tool Definition to MCP Response, so you can draft and wire up tools incrementally.