-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtooltrim.config.yaml
More file actions
71 lines (62 loc) · 1.54 KB
/
tooltrim.config.yaml
File metadata and controls
71 lines (62 loc) · 1.54 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Tooltrim — example configuration.
#
# Place this file at the root of your project as `tooltrim.config.yaml`,
# point your MCP client at `npx -y tooltrim`, and the proxy will fan out
# to every server below.
servers:
# Each key becomes the namespace prefix in aggregated tool names,
# e.g. `github.create_issue`.
github:
transport: stdio
command: ["npx", "-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_TOKEN: "${GITHUB_TOKEN}"
linear:
transport: http
url: https://mcp.linear.app/sse
auth: passthrough # forward the inbound Authorization header upstream
pg:
transport: stdio
command: ["uvx", "mcp-server-postgres", "--url", "${PG_URL}"]
# Glob filters apply to the namespaced name. Allow first, then deny.
filters:
allow:
- "github.*"
- "linear.create_*"
- "linear.list_*"
- "pg.query"
deny:
- "github.delete_*"
- "*.admin_*"
# Description shrinking: deterministic rules in v0.1, LLM-assisted in v0.2.
shrink:
mode: rules
maxDescriptionChars: 160
dedupeSchemas: true
cachePath: .tooltrim/shrink-cache.json
inbound:
stdio: true
http:
enabled: true
host: 127.0.0.1
port: 8787
path: /mcp
sessions: stateless
observability:
trace:
sink: file
path: .tooltrim/trace.ndjson
metrics:
prometheus:
enabled: true
port: 9464
otel:
enabled: false
endpoint: "${OTEL_EXPORTER_OTLP_ENDPOINT}"
audit:
enabled: true
path: .tooltrim/audit.ndjson
policy:
defaultAuth: passthrough
blockedTools: []
logLevel: info