Repository navigation
feat(mcp) #4867: add configurable tool profiles - #5402
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5402 +/- ##
============================================
- Coverage 65.38% 65.34% -0.05%
- Complexity 1001 1103 +102
============================================
Files 1733 1734 +1
Lines 144421 144560 +139
Branches 30959 30980 +21
============================================
+ Hits 94436 94459 +23
- Misses 36881 37261 +380
+ Partials 13104 12840 -264 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Reviewed against the epic #4859 acceptance criteria. The mechanics here are right: the profile is an allowlist enforced at both The problems are with the profile contents and the scope of the setting, not the implementation. 1. The
|
|
Thanks, Roberto. Addressed in
Focused validation: |
|
Correction to my review above: I did not raise the docs criterion from #4859 because I had wrongly concluded no MCP documentation lives in this repo. The MCP reference page is at https://docs.arcadedb.com/arcadedb/reference/mcp/mcp and its source is That page documents the Please open a companion One thing that makes point 1 of my review sharper: the page does not mention MCP Resources anywhere, so the |
|
Companion documentation is now open as ArcadeData/arcadedb-docs#428. It documents the three profile values, exact Validation on the standalone documentation branch:
|
f4e250b to
23a7cb0
Compare
Resolves the overlap with sample_records (ArcadeData#5398) and vector_search (ArcadeData#5399), both now on main. The conflict was confined to the stdio discovery test, which each side had independently rewritten off the old hardcoded tool count. Keeps this branch's version, which asserts through the toolNames helper, and folds sample_records into it. Now that both Wave 1 tools have landed, the profile membership assertions cover them: the rag profile is asserted to expose sample_records and vector_search, and the admin profile is asserted not to. That is the check ArcadeData#4859 sequenced this PR to make once the Wave 1 tool names settled. Also imports JSONException in MCPConfigurationTest rather than naming it inline, per the project convention against fully qualified names. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Both Wave 1 tools are now on main ( On your fix commit
I checked for the pattern that bit the What I changed on topThe only conflict was the stdio discovery test, which this branch and main had each rewritten off the old hardcoded count. I kept this branch's version, which goes through the Then I extended the profile assertions, since the Wave 1 names have settled and the tests were written before they existed. Both the HTTP and stdio profile tests now assert I also imported
Still openProfiles are server-global. This is the one review point not addressed, and I do not think it should block the PR. #4859's criterion is that the surface a given agent sees stays small, and a single server-wide Docs. The |
|
Thanks, Roberto. I reviewed the merge resolution and agree with the settled Wave 1 profile assertions.\n\nThe two remaining items are already covered:\n\n- The design spec's |
Resolves the overlap with tool profiles (ArcadeData#5402), which landed on main and added its own field, load, updateFrom and toJSON handling to MCPConfiguration alongside the per-database overrides added here. Both features are kept everywhere they collided. Where the two sides differed on how allowAdmin is read, main's strict booleanValue() wins, so a non-boolean value is still rejected with a typed error rather than coerced. Also refreshes the spec's enforcement list, which had gone stale: it named six database-targeted tools while the code now scopes eight, since sample_records (ArcadeData#5398) and vector_search (ArcadeData#5399) were wired to the resolver after the spec was written. The list is normative for the "future tools must use the same resolver" rule, so it now records the required access each tool declares and why the write tools ask for ACCESS. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Summary
all,rag, andadminModel Context Protocol (MCP) tool profilestools/listthrough the active profiletools/callso hidden tools cannot be invoked directlyragprofileBehavior
profiledefaults toall, preserving the current tool surface exactly.The
ragprofile permits registered retrieval tools:queryfull_text_searchsample_recordsvector_searchhybrid_searchOnly tools registered by the running server are advertised. This lets pending retrieval tools join the existing profile allowlist when installed without advertising unavailable tools.
The
adminprofile exposes the original operator and database-administration surface. Schema Resources remain available through the MCP Resources capability rather than consuming a tool slot.Profiles restrict tool visibility and invocation; they do not grant read, write, schema, administrative, user, or origin permissions. Those existing checks remain mandatory.
Unknown profile values return HTTP 400 from the configuration endpoint and are rejected before any other field in the same update is applied.
Validation
Closes #4867