foxy-contexts
Foxy contexts is a Go library for building context servers that support the Model Context Protocol (MCP). The library implements only the server side of the protocol, defines tools, resources, and prompts declaratively, and registers them through app.Builder; under the hood it uses Uber's fx dependency injection framework, so shared components such as clients and database connections can be injected into the container for reuse. Features already implemented in the library include basic lifecycle and ping, Stdio transport, SSE transport, Streamable HTTP transport (beta), tool input schema definition and validation (toolinput package), static resources, dynamic resources provided through Resource Providers, resource subscriptions, prompt completion, and functional testing based on the foxytest package. Features such as progress notifications, Resource Templates, logging, sampling, Roots, pagination, and list_changed notifications are still planned.