fp-go-mcp

Configure and use the fp-go MCP server to query skills and Go code examples.

2.0k|83|Updated Jul 5, 2023
One-click install
npx skills add https://github.com/IBM/fp-go --skill fp-go-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fp-go-mcp
Source: https://github.com/IBM/fp-go/tree/main/gen/v2/data/skills/fp-go-mcp
Command: npx skills add https://github.com/IBM/fp-go --skill fp-go-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers working with the fp-go functional programming library for Go need programmatic access to its skills, documentation, and code examples from MCP-compatible AI clients like Claude Desktop, without manually browsing the repository.

Core Features & Use Cases

  • Skill Discovery and Retrieval: List all available fp-go skills with list_skills and load full skill content with use_skill.
  • Example Search: Run full-text searches (SQLite FTS5 syntax) across Go examples with search_examples, optionally filtered by package, and fetch exact examples by symbol name with get_example.
  • Use Case: While refactoring Go code to use Option types, ask your AI assistant to search examples of Option.Map, retrieve the exact example code with imports and expected output, and load the fp-go skill for composition best practices.

Quick Start

Add the tool with go get -tool github.com/IBM/fp-go/gen/v2, then configure your MCP client to run go tool gen mcp and ask it to list the available fp-go skills.

Frequently Asked Questions about fp-go-mcp

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

FAQPage Schema
How do I set up the fp-go MCP server in Claude Desktop?

Add github.com/IBM/fp-go/gen/v2 as a tool dependency with go get -tool, then add an mcpServers entry in claude_desktop_config.json with command "go" and args ["tool", "gen", "mcp"]. Restart Claude Desktop to activate the server.

What tools does the fp-go MCP server provide?

The server exposes four read-only tools: list_skills to enumerate available fp-go skills, use_skill to retrieve full skill content, search_examples for full-text search over Go examples, and get_example to fetch a specific example by symbol name.

How do I search fp-go code examples by package?

Call search_examples with a query string and an optional package_filter parameter, such as query "Map" with package_filter "option". The search uses SQLite FTS5 syntax supporting phrases, boolean operators, and wildcards, returning up to 10 ranked results.

Why does the fp-go MCP server fail to start?

The server fails when the tool dependency is missing from your project. Run go get -tool github.com/IBM/fp-go/gen/v2 in a directory whose go.mod lists the tool, then launch with go tool gen mcp; add --verbose for diagnostic logs on stderr.

Does the fp-go MCP server require network access?

No, the server operates entirely offline using embedded skill and example data over stdio transport. It performs only read-only operations with no file system or network access, extracting its examples database to a temporary location that is cleaned up automatically.