# patterns MCP server

> Provides a reference implementation for building production-grade Python MCP servers with tool registries, multi-workspace routing, and safety gates.

- Repository: https://github.com/TomOccon/mcp-server-patterns
- Page: https://hostedmcp.org/servers/tomoccon/mcp-server-patterns
- Transport: —
- Stars: 0
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `WORKSPACE_PROD_TOKEN` | no | no |  |
| `WORKSPACE_STAGING_TOKEN` | no | no |  |

## FAQ

### What is the purpose of this repository?

It is a clean-room reference implementation of production patterns for a Python MCP server, demonstrating how to handle tool registries, routing, and safety.

### Does this server connect to real APIs or proprietary data?

No, it runs against a fake in-memory backend with synthetic tools, data, and workspaces for demonstration purposes.

### How does the server handle destructive actions?

It uses confirm gates and dry-run modes. Destructive tools require a confirmation boolean, and dry-run mode uses a read-only backend wrapper to prevent state changes.

### How are secrets and sensitive information handled?

The server implements deep redaction for exact secret values, sensitive key names, and regex patterns for Bearer tokens, and filters logs to prevent leaking values.
