Skip to content

Refuse unsafe MCP payloads and attach local_review notes - #10

Merged
jmjava merged 1 commit into
mainfrom
cursor/payload-guards-937a
Sep 7, 2026
Merged

Refuse unsafe MCP payloads and attach local_review notes#10
jmjava merged 1 commit into
mainfrom
cursor/payload-guards-937a

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026

Copy link
Copy Markdown
Owner

No-GPU follow-on after the review handoff. Two gaps that still showed up without a workstation GPU:

Server-side refuse

Eval routing already kept .env off local_*. The MCP server did not. _run_tool now inspects the payload before Ollama:

  • secret filenames (.env, id_rsa, credentials.json)
  • private-key PEM and a few token prefixes
  • more than 12 files or 120kB
  • max_tokens above 8192

A snippet that only mentions password is still allowed (login() review cases).

local_review prelude

Security-sensitive orchestrated jobs call local_review first and attach those notes to the premium packet. That still cannot approve.

CI also runs the stub observed failover profile.

103 unit tests passed on this agent. Still no live GPU rates and this Cloud Agent still cannot call local_* as its own tools.

Open in Web Open in Cursor 

The stdio server now drops .env files, private-key/token blobs, oversized
file sets, and huge max_tokens before Ollama is called. Security-sensitive
orchestrated jobs call local_review first and attach those notes to the
premium packet. CI also runs the stub observed failover profile.

Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava merged commit 2b0aad4 into main Sep 7, 2026
3 checks passed
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.

2 participants