Repository navigation
Commit fcb9fcd
feat(cursor-approve): context-proxy.py, a read-only MCP proxy for Linear, Notion and Slack
A stdio MCP server the cursor-approve axes can use as their only MCP server.
It reads a token file at startup and deletes it, never puts a token in
os.environ, and exposes six read tools filtered by --enable. Every outbound
call goes through one guard that checks method, host, path and (for Linear)
the GraphQL document against a read-only allow-list before sending; agent
input reaches Linear only through variables. Slack search runs over a 30-day
preload of member public channels, since bot tokens cannot call
search.messages. 40 calls, 20 KB per response and 1 MB total per process;
every call is logged as a JSON line.
Tests are wired into test-cursor-review-scripts.yml; all network is mocked,
and a static test fails on any urllib.request/http.client use outside the
guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent b5119d2 commit fcb9fcd
5 files changed
Lines changed: 1309 additions & 2 deletions
File tree
- .github
- cursor-approve
- tests
- workflows
0 commit comments