add-mcp-tool

Add a new tool endpoint to an MCP server with DTOs, registration, and handlers.

5|2|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/mirkosertic/MCPLuceneServer --skill add-mcp-tool
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-mcp-tool
Source: https://github.com/mirkosertic/MCPLuceneServer/tree/main/.claude/skills/add-mcp-tool
Command: npx skills add https://github.com/mirkosertic/MCPLuceneServer --skill add-mcp-tool

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured, step-by-step process for developers to add new tool endpoints to the MCP server, ensuring consistency and discoverability.

Core Features & Use Cases

  • Guided Development: Walks through creating request/response DTOs, registering specifications, and implementing handlers.
  • Documentation Integration: Emphasizes updating README.md for clear tool usage.
  • Testing Emphasis: Includes steps for unit and integration testing.
  • Use Case: A developer needs to add a new tool to query specific index statistics. This Skill guides them through all necessary code and documentation changes.

Quick Start

Follow the steps in this skill to add a new MCP tool endpoint.

Frequently Asked Questions about add-mcp-tool

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

FAQPage Schema
How do I add a new tool endpoint to an MCP server?

To add an MCP tool endpoint, you must create request and response DTOs, register the tool specification, implement the handler logic, and update the server's README documentation to ensure discoverability.

What is the correct structure for MCP tool request parameters?

MCP tool request parameters require specific Java record patterns for DTO creation and JSON schema definitions to validate inputs, ensuring consistent API endpoint integration across compatible clients and servers.

Do I need to write tests when adding an MCP server tool endpoint?

Yes, adding an MCP tool endpoint requires both unit and integration testing to verify the handler implementation and JSON schema definitions before the API endpoint becomes discoverable.

Can I use this MCP tool development guide for clients not written in Java?

This MCP tool development guide requires adherence to specific Java record patterns, making it best suited for Java-based MCP server integration and API endpoint development workflows.

What's the best way to document a new MCP tool endpoint?

The best way to document an MCP tool endpoint is updating the README.md file with usage instructions, ensuring the new API endpoint and its JSON schema definitions are fully discoverable by developers.