Repository navigation
docs(spec): 127 argument rules in profiles - #1943
Merged
Merged
Conversation
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.
Deploying mcpproxy-docs with
|
| 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 |
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.
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 44592065301 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. refuseforce: trueongithub:pushallow_values, which narrows an enumpath_prefix, which keeps writes under a project directory (cleaned path, whole-segment match, type mismatch is refused)forbid, which refuses an argument entirelyThe check runs at call time, right after the existing profile decision, on every dispatching door:
call_tool_*, direct, single-server,code_executionand 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 reasonprofile_argument.describe_toolshows 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_paramsallowlist; this spec goes further with values, prefixes andforbid.Spec:
specs/127-profile-argument-rules/spec.md