Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

schemapin

bởi jaschadub

Coding Agents & IDEs
419Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

**Purpose**: This guide helps AI assistants quickly integrate SchemaPin into applications for cryptographic tool.

Mô tả

Kỹ năng này làm gì

SchemaPin prevents "MCP Rug Pull" attacks by letting developers cryptographically sign tool schemas with ECDSA P-256 and clients verify those signatures haven't been tampered with. It uses Trust-On-First-Use key pinning and RFC 8615 `.well-known` endpoints for public key discovery. Available in Python, JavaScript, Go, and Rust.

Cross-language ECDSA P-256 compatibility means a schema signed in Python can be verified in Go or Rust without any format conversion.

Khi nào nên dùng

  • Signing MCP tool schemas before publishing to a public registry
  • Verifying tool schemas haven't been modified at agent startup
  • Validating skill directories offline in air-gapped CI/CD pipelines
  • Detecting modified, added, or removed files in a signed skill folder
  • Revoking a compromised signing key and propagating that revocation to clients

Quy trình ví dụ

ĐẦU VÀO

User asks: Sign my tool schema and publish my public key so clients can verify it

AGENT
  1. 1

    Generate an ECDSA P-256 keypair with KeyManager.generate_keypair()

  2. 2

    Canonicalize the schema with SchemaPinCore().canonicalize_schema(schema_dict)

  3. 3

    Sign the canonical schema with SignatureManager.sign_schema(private_key, canonical)

  4. 4

    Publish the public key at /.well-known/schemapin.json using create_well_known_response()

  5. 5

    Distribute the base64 signature alongside the schema for client verification

ĐẦU RA

A signed schema with a live .well-known endpoint; clients verify the signature and pin the key fingerprint on first contact, rejecting any future key substitution for that domain

Cài đặt

clawhub install jaschadub/schemapin

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết