Skip to content

Add OmniBrain MCP gateway authorization stub - #12

Open
wmeddie wants to merge 1 commit into
mainfrom
feature/omnibrain-mcp-gateway-stub
Open

Add OmniBrain MCP gateway authorization stub#12
wmeddie wants to merge 1 commit into
mainfrom
feature/omnibrain-mcp-gateway-stub

Conversation

@wmeddie

@wmeddie wmeddie commented Jul 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a dependency-free fixture-backed OmniBrain MCP gateway stub with opaque token introspection, per-tool authorization, safe-denial responses, permission-filtered retrieval, revocation helpers, and redacted audit logging.
  • Expose stable MCP tool discovery metadata for omnibrain.search, omnibrain.get_document, omnibrain.list_scopes, and omnibrain.explain_access.
  • Add deterministic tests covering allowed access, restricted metadata non-leakage, token/grant/source revocation, stale ACLs, tenant isolation, tool authorization, and filter validation.

Verification

  • python -m py_compile omnibrain_mcp_gateway.py tests/test_omnibrain_mcp_gateway.py
  • python -m pytest tests/test_omnibrain_mcp_gateway.py -q (14 passed)

Note: This is a stub/contract slice intended for review and future transport/runtime adapter integration.

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.

1 participant