Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mcp-resile
command
Command mcp-resile is the resilience gateway/reverse proxy for the Model Context Protocol.
|
Command mcp-resile is the resilience gateway/reverse proxy for the Model Context Protocol. |
|
internal
|
|
|
auth
Package auth enforces the gateway's bearer token/API key allow-list on every ingress HTTP request, per spec.md §5.4 and the FEATURE-019 acceptance criterion: a request without a valid token is rejected before it ever reaches MCP session handling, let alone a backend.
|
Package auth enforces the gateway's bearer token/API key allow-list on every ingress HTTP request, per spec.md §5.4 and the FEATURE-019 acceptance criterion: a request without a valid token is rejected before it ever reaches MCP session handling, let alone a backend. |
|
config
Package config loads and validates mcp-resile.yaml, per spec.md §7.
|
Package config loads and validates mcp-resile.yaml, per spec.md §7. |
|
egress
Package egress opens and drives MCP client sessions toward backend servers over HTTP, per spec.md §3.3.
|
Package egress opens and drives MCP client sessions toward backend servers over HTTP, per spec.md §3.3. |
|
ingress
Package ingress builds the gateway's client-facing MCP server and serves it over Streamable HTTP, per spec.md §3.2.
|
Package ingress builds the gateway's client-facing MCP server and serves it over Streamable HTTP, per spec.md §3.2. |
|
logging
Package logging builds the gateway's structured slog.Logger from telemetry.logging: config (spec.md §7), per the FEATURE-021 acceptance criterion: every request logs at info with tool name, backend, outcome, and latency as structured fields; errors log at warn/error with the mapped JSON-RPC code.
|
Package logging builds the gateway's structured slog.Logger from telemetry.logging: config (spec.md §7), per the FEATURE-021 acceptance criterion: every request logs at info with tool name, backend, outcome, and latency as structured fields; errors log at warn/error with the mapped JSON-RPC code. |
|
metrics
Package metrics implements FEATURE-020's Prometheus /metrics endpoint: request count/latency by tool, circuit breaker state transitions, rate-limit rejections, and retry counts.
|
Package metrics implements FEATURE-020's Prometheus /metrics endpoint: request count/latency by tool, circuit breaker state transitions, rate-limit rejections, and retry counts. |
|
policy
Package policy resolves a tool name to the policy that governs it, per spec.md §7 and the FEATURE-010 acceptance criterion: a tool name resolves to exactly one matching policy (or a documented default) before dispatch.
|
Package policy resolves a tool name to the policy that governs it, per spec.md §7 and the FEATURE-010 acceptance criterion: a tool name resolves to exactly one matching policy (or a documented default) before dispatch. |
|
proxy
Package proxy wires the ingress MCP server to one or more egress backends, merging tools/list across them and routing tools/call by namespace prefix, per spec.md §5.1, and dispatching each tools/call through resile's resilience primitives per the policy governing it (FEATURE-010 onward).
|
Package proxy wires the ingress MCP server to one or more egress backends, merging tools/list across them and routing tools/call by namespace prefix, per spec.md §5.1, and dispatching each tools/call through resile's resilience primitives per the policy governing it (FEATURE-010 onward). |
|
version
Package version holds the build-time version string for mcp-resile.
|
Package version holds the build-time version string for mcp-resile. |
Click to show internal directories.
Click to hide internal directories.