Overview
what is @civic/mcp-tools?
@civic/mcp-tools is a collection of tools designed for creating Model Context Protocol (MCP) servers and clients, facilitating request and response interception and modification.
how to use @civic/mcp-tools?
To use @civic/mcp-tools, install the dependencies, build the packages, and run the passthrough MCP server with the desired configuration.
key features of @civic/mcp-tools?
- Passthrough MCP server for proxying requests to other MCP servers.
- Configurable hooks for request/response interception.
- Audit and guardrail hooks for monitoring and filtering requests.
- Simple logging hook for debugging.
- Fetch-docs server for converting web pages to markdown.
use cases of @civic/mcp-tools?
- Prototyping and testing MCP servers.
- Monitoring and debugging MCP requests and responses.
- Implementing custom request filtering and modification rules.
- Fetching and converting web content for documentation purposes.
FAQ from @civic/mcp-tools?
- What is the purpose of the passthrough MCP server?
The passthrough MCP server proxies requests to other MCP servers while applying configurable hooks for interception and modification.
- How do I set up the development environment?
You can set up the development environment by installing dependencies with
pnpm install, building the packages withpnpm build, and running the server in development mode withpnpm dev.
- Is there documentation available for the hooks?
Yes, each hook comes with its own documentation and examples for usage.