Skip to content

feat(mcp): plugin lockfile, tool-manifest hash and rug-pull guard #599

Closed

Description

@ajianaz

What problem does this solve?

An MCP server can change its tool descriptions after approval (rug pull) and its descriptions are model-visible instructions (tool poisoning, shadowing; Invariant Labs). tole pins nothing today and shows only a 200-char sanitized description on the approval line.

Proposed solution

Per docs/third-party-plugins-design.md §4.1–4.2 (applies to first-party servers too):

  • .tole/plugins.lock (project) and a user-level lock: source, exact version, integrity hash, tool-manifest hash (names + descriptions + input schemas), granted secrets, sandbox profile, approval date.
  • On every connect, hash the live manifest; on mismatch the server's tools are not registered until the owner re-approves; tole plugin diff <name> shows the change.
  • Show the full model-visible description and schema at approval time (sanitized for terminal safety, not summarized).
  • Ledger entries for approve / manifest change / revoke.

Alternatives considered

Trusting server metadata at each start (the rug-pull hole); hashing only the package (descriptions can change at runtime).

Are you willing to contribute the implementation?

Yes, I can do it

Before submitting

  • I searched existing issues and didn't find a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions