feat: add the okf mcp read tool surface - #26
Merged
Conversation
chrishiguto
force-pushed
the
feature/11-mcp-read-surface
branch
from
August 18, 2026 19:41
7d91428 to
766d4e5
Compare
chrishiguto
changed the base branch from
feature/10-graph-query-filters
to
feature/16-bundle-change-set
August 18, 2026 19:41
Contributor
Author
This was referenced Aug 18, 2026
chrishiguto
force-pushed
the
feature/11-mcp-read-surface
branch
2 times, most recently
from
August 19, 2026 14:33
e0054e8 to
26fd807
Compare
leoafarias
force-pushed
the
feature/11-mcp-read-surface
branch
from
August 21, 2026 17:08
64a1e3d to
2eee26d
Compare
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.
Why
Agents need a sanctioned read surface that reproduces CLI and CI judgments without stale bundle state or protocol-channel noise.
What
okf mcp <bundle>serves four fixed tools over stdio:list-concepts,lookup-concept,query-graph, andvalidate. Every call re-reads the bundle. Stdout carries JSON-RPC only; diagnostics go to stderr.validatereturns the closed Spec report plus the adapter Verdict and supports the CLI-equivalent strict input.query-graphadvertisesOkfGraphQuery.jsonSchemaverbatim and returns the versioned graph payload. All tools explicitly advertise read-only, non-destructive, idempotent, closed-world behavior.Reviewer's guide
Start with
lib/src/mcp/read_server.dart, then the real subprocess protocol harness intest/mcp_server_test.dartand the CLI wiring inlib/src/cli.dart.Testing
dart pub publish --dry-runreports 0 warnings.Links
Cleanly restacked on the merged prepared-change foundation.
Fixes #11.