Skip to content

docs(spec): 127 argument rules in profiles - #1943

Merged
Dumbris merged 6 commits into
mainfrom
127-profile-argument-rules
Nov 20, 2026
Merged

Dumbris merged 6 commits into
mainfrom
127-profile-argument-rules

Conversation

@Dumbris

@Dumbris Dumbris commented Nov 19, 2026

Copy link
Copy Markdown
Member

Spec only, no code.

A profile can keep a tool and refuse just the calls whose arguments cross a line the operator draws:

  • deny_values, e.g. refuse force: true on github:push
  • allow_values, which narrows an enum
  • path_prefix, which keeps writes under a project directory (cleaned path, whole-segment match, type mismatch is refused)
  • forbid, which refuses an argument entirely

The check runs at call time, right after the existing profile decision, on every dispatching door: call_tool_*, direct, single-server, code_execution and REST replay. It never admits a tool the profile would refuse, and it does not change discovery or listing. A refusal uses the new block reason profile_argument. describe_tool shows the rules that apply. Try it and the explainer accept sample arguments.

Origin: idea 1 of the LiteLLM MCP Gateway comparison. LiteLLM has a per-tool allowed_params allowlist; this spec goes further with values, prefixes and forbid.

Spec: specs/127-profile-argument-rules/spec.md

A profile can keep a tool and refuse only calls whose arguments cross a
line: deny a value (force=true), narrow allowed values, confine a path to a
prefix, or forbid an argument. Enforced at call time on every dispatching
door, after the existing tool decision. Idea 1 of the LiteLLM MCP Gateway
comparison.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d5098db
Status: ✅  Deploy successful!
Preview URL: https://24b9b9fe.mcpproxy-docs.pages.dev
Branch Preview URL: https://127-profile-argument-rules.mcpproxy-docs.pages.dev

View logs

Binding guard sees argument rules; rules enforced regardless of schema;
POSIX-only path dialect that refuses backslashes instead of folding them;
pinned path-resolution table for nulls, arrays and wrong-shaped ancestors;
scalar-only comparisons with a cumulative node/byte budget; scoped profile
responses project argument rules; explainer samples via POST body only;
honest downgrade statement.
Branch-wise when_absent for array traversal (intermediate vs terminal
empty arrays pinned); lossless mathematical number comparison across all
doors with bounded configured values; rules deduplicated and each
argument path costed once so containment and budget agree; drop the
unknown-field preservation goal and keep strict unknown-key rejection on
policy writes.
Pin precedence against the early intent parsing/validation that already
precedes the profile decision on call_tool_*; parity assertions apply to
otherwise-valid requests.
Binding containment checked against bound-reachable (switchable)
policies; wildcard argument rules exposed only when they match a visible
server; correct the budget monotonicity statement.
Bound-reachable policies follow the credential's actual switching
permission: locked clients and pinned tokens reach only the bound
profile.
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: 127-profile-argument-rules

Available Artifacts

  • archive-darwin-amd64 (33 MB)
  • archive-darwin-arm64 (30 MB)
  • archive-linux-amd64 (20 MB)
  • archive-linux-arm64 (18 MB)
  • archive-windows-amd64 (33 MB)
  • archive-windows-arm64 (29 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (29 MB)
  • installer-dmg-darwin-arm64 (26 MB)
  • smart-mcp-proxymcpproxy-goUL6FJS.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 44592065301 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Dumbris
Dumbris merged commit be1ee19 into main Nov 20, 2026
84 of 85 checks passed
Dumbris added a commit that referenced this pull request Nov 20, 2026
`roadmap.yaml` had no epics after Spec 117. This PR adds them and
regenerates `ROADMAP.md`.

- **Shipped:** 118 auto-rescan (#1689), 118 pin visibility boundary
(#1684, #1688, #1821), 119 (#1740), 120 (#1781), 122 (#1818) and 123
(#1886, #1887, #1888, #1891).
- **In review:** 121 install surfaces (#1711). There is no `spec:` link
yet because its folder exists only on the PR branch.
- **In progress:** 124 (PR-1 #1918 done; PR-2 CLI and PR-3 Web UI to do)
and 125 (spec plus PR-1..3 done; PR-4 Web UI to do). Merged PRs are
listed as done child tasks, so `--check-github` doesn't flag a merged PR
under an in-progress epic.
- **Spec-only PRs:** 127 (#1943), 128 (#1944) and 129 (#1945).

Merge this after #1943, #1944 and #1945. Until then, `--check-github`
reports their `spec:` links as unresolved; `--check`, the pre-commit
hook, passes.

Not covered: Spec 126 (#1940, open) and the unsynced tasks.md checkboxes
for 123 and 124.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants