add-mcp-tool

Extend an MCP server with custom tools using Go structs and handlers.

5|1|Updated May 3, 2026
One-click install
npx skills add https://github.com/richardwooding/file-search-on --skill add-mcp-tool-richardwooding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-mcp-tool
Source: https://github.com/richardwooding/file-search-on/tree/main/.claude/skills/add-mcp-tool
Command: npx skills add https://github.com/richardwooding/file-search-on --skill add-mcp-tool-richardwooding

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of extending the file-search-on MCP server with new tools, by guiding through the definition, implementation, and testing of custom tool handlers.

Core Features & Use Cases

  • Define JSON Tagged Structs: Create input/output structs with appropriate tags for schema generation.
  • Implement Handler Functions: Code the handler functions that define the tool's behavior.
  • Register Tools: Properly register new tools within the MCP server's New function.
  • Test Tools: Validate tool functionality using in-memory transports for testing.

Quick Start

Start by defining the JSON schema for your new tool and its input/output structures, then implement the handler function. Register your tool with the MCP server and write tests to ensure its functionality.

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 custom tools to an MCP server?

To add custom tools to an MCP server, you define JSON-tagged input and output structs, implement the corresponding handler functions, register the tools within the server's New function, and write tests using in-memory transports.

How do I define input and output schemas for an MCP server tool?

You define input and output schemas for an MCP server tool by creating Go structs with appropriate JSON tags, which are used for automatic schema generation during the tool definition process.

Do I need to know Go programming to extend an MCP server with custom tooling?

Yes, you need a basic understanding of Go programming to extend an MCP server. The process requires writing handler functions in Go and using the MCP server SDK to implement and register your custom tools.

What is the best way to test custom MCP server tool handlers?

The best way to test custom MCP server tool handlers is by validating their functionality with in-memory transports, ensuring the tool behaves correctly within the server environment before deployment.

How do I register a new tool handler in an MCP server?

You register a new tool handler in an MCP server by properly adding it inside the server's New function after you have defined the JSON-tagged structs and implemented the matching handler function.