Repository navigation
docs(tutorials): secure an agent's MCP tool calls with OAP and SpiceDB - #612
Merged
Merged
Conversation
…nd SpiceDB Walks through the examples/mcp-shared-drive sample in openagentprimitives: an agent reading a shared drive over an unmodified MCP filesystem server leaks payroll when a planted instruction asks for it, and the same agent on OAP has every tool call checked in SpiceDB as the person asking.
Contributor
|
Preview deployment status for this pull request.
|
sohanmaheshwar
marked this pull request as ready for review
November 25, 2026 17:11
Merged
6 of 11 tasks
samkim
reviewed
Nov 26, 2026
The tutorial leaves the MCP server unmodified and checks the agent's tool calls before they reach it, so "Secure an MCP Server" promised something the page doesn't do. Rename the title and the slug to match.
samkim
approved these changes
Nov 30, 2026
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What this adds
A tutorial at
/spicedb/tutorials/secure-mcp-tool-calls, listed under Tutorials in the sidebar. It walks through theexamples/mcp-shared-drivesample in openagentprimitives:payroll.csvand write salaries into a draft.Merge order
The sample lives in an openagentprimitives PR that hasn't merged yet (link below). This PR is a draft until that one lands, so the tutorial never points at an example that doesn't exist.
Checks
pnpm run format:checkpasses repo-wide.markdownlint-cli2on the page: 0 errors. CI'slint:markdownand spellcheck globs only coverpages/**, so I ran markdownlint on the page directly.pnpm dev. All seven images load, and the Slack screenshots are sized so their text matches across both accounts.