-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path12-observability.yaml
More file actions
35 lines (29 loc) · 1.13 KB
/
Copy path12-observability.yaml
File metadata and controls
35 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Observability: Prometheus metrics, OTLP traces, session recording, and
# semantic tool filtering.
listen: 127.0.0.1:8000
inbound:
mode: anonymous
backends:
everything:
transport: stdio
command: ["npx", "-y", "@modelcontextprotocol/server-everything"]
telemetry:
# Exposes GET /metrics:
# mcpproxy_messages_total{direction,backend,method,tool,decision}
# mcpproxy_message_duration_seconds{direction,backend,method}
# mcpproxy_sessions_active
prometheus_path: /metrics
# OTLP gRPC trace export (e.g. an otel-collector or Jaeger):
otlp_endpoint: 127.0.0.1:4317
service_name: mcpproxyd
# Session recording: one append-only JSONL file per session holding each
# audit event (tool_call, tool_denied, tools_changed, approval_*, …).
# Replay: jq -r '[.time,.event,.tool//""] | @tsv' sessions/<sid>.jsonl
wal_dir: ./sessions
# Semantic tool filtering: tools/list returns only the top_k tools most
# relevant to `purpose` (lexical scorer; plug in an embedding scorer when
# embedding the gateway). A smaller tool catalog costs fewer tokens per
# request.
optimizer:
top_k: 8
purpose: "read files and search documentation"