Foxy Contexts

v1.0.0Developer Toolsstable

Foxy contexts is a library for building context servers supporting Model Context Protocol

foxy-contextsmcpai-integration
Share:
114
Stars
0
Downloads
0
Weekly
0/5

What is Foxy Contexts?

Foxy Contexts is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to foxy contexts is a library for building context servers supporting model context protocol

Foxy contexts is a library for building context servers supporting Model Context Protocol

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Foxy contexts is a library for building context servers supp

Use Cases

Build custom context servers supporting the Model Context Protocol.
strowk

Maintainer

LicenseMIT
Languagego
Versionv1.0.0
UpdatedApr 5, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx foxy-contexts

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Foxy Contexts

Foxy Contexts is a Go library for building Model Context Protocol (MCP) servers using a declarative, dependency-injection-based approach built on Uber's fx framework. Instead of implementing the MCP wire protocol manually, developers define tools, resources, and prompts as Go structs with callbacks, and Foxy Contexts handles transport (stdio, SSE, or HTTP), session management, input schema validation, and protocol compliance automatically. It is best suited for Go developers who want to ship custom MCP servers quickly with a well-structured, testable codebase.

Prerequisites

  • Go 1.21 or higher installed
  • Familiarity with Go modules and the Go toolchain
  • An MCP-compatible client such as Claude Desktop or the MCP Inspector for testing
  • Git to clone example repositories
1

Add foxy-contexts to your Go module

Initialize a new Go module (or use an existing one) and add the foxy-contexts dependency.

go mod init my-mcp-server
go get github.com/strowk/foxy-contexts
2

Define a tool using NewTool

Create a tool with a name, description, and input schema using the fxctx package. The callback receives parsed arguments and returns MCP content.

import "github.com/strowk/foxy-contexts/pkg/fxctx"

myTool := fxctx.NewTool(
    &protocol.Tool{
        Name:        "my_tool",
        Description: mcp.Ptr("Does something useful"),
    },
    func(args map[string]interface{}) *protocol.CallToolResult {
        // implement tool logic here
        return &protocol.CallToolResult{}
    },
)
3

Build and start the app

Use app.NewBuilder() to wire everything together, attach your tools, and start the server with your chosen transport (stdio is default).

import "github.com/strowk/foxy-contexts/pkg/app"

app.NewBuilder().
    WithName("my-mcp-server").
    WithVersion("1.0.0").
    WithTool(myTool).
    WithTransport(app.NewStdioTransport()).
    Run()
4

Test with the MCP Inspector

Use the official MCP Inspector to connect to your server and verify the tools are correctly exposed before wiring it up to a production client.

npx @modelcontextprotocol/inspector go run main.go
5

Configure your MCP client

Add the compiled server binary to your Claude Desktop configuration so Claude can use the tools you registered.

{
  "mcpServers": {
    "my-mcp-server": {
      "command": "/path/to/my-mcp-server",
      "args": []
    }
  }
}

Foxy Contexts Examples

Client configuration

Claude Desktop configuration for a custom MCP server built with Foxy Contexts and compiled to a binary.

{
  "mcpServers": {
    "my-foxy-server": {
      "command": "/usr/local/bin/my-foxy-server",
      "args": []
    }
  }
}

Prompts to try

Example prompts depend on what tools you register. These prompts work for a server exposing filesystem or utility tools typical of Foxy Contexts examples.

- "List all Kubernetes namespaces" (if you built a k8s tool)
- "Show the contents of my project directory"
- "Run the registered echo tool with message 'hello world'"
- "What tools are available on this MCP server?"

Troubleshooting Foxy Contexts

go get fails with module not found errors

Ensure you have Go modules enabled (GO111MODULE=on or Go 1.16+) and run 'go mod tidy' after adding the dependency. Check your network access if the module proxy is unreachable.

Claude Desktop does not see the server's tools

Verify the server binary path in claude_desktop_config.json is absolute and executable. Run the binary manually in a terminal to confirm it starts without errors. Use 'npx @modelcontextprotocol/inspector /path/to/binary' to inspect the server's tool list before connecting to Claude.

Input schema validation errors at runtime

Foxy Contexts validates tool inputs against the schema you declare. Check that your tool's inputSchema matches the JSON structure your callback expects. The 'toolinput' package provides helpers for defining typed schemas that reduce mismatches.

Frequently Asked Questions about Foxy Contexts

What is Foxy Contexts?

Foxy Contexts is a Model Context Protocol (MCP) server that foxy contexts is a library for building context servers supporting model context protocol It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Foxy Contexts?

Follow the installation instructions on the Foxy Contexts GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Foxy Contexts?

Foxy Contexts works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Foxy Contexts free to use?

Yes, Foxy Contexts is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "foxy-contexts": { "command": "npx", "args": ["-y", "foxy-contexts"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Foxy Contexts?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides