cyberneticlibrary

Gate MCP tools with cost and risk metadata

adapter-mcpmcp_serversetup L30
Monoperro0207/glyph-protocol
What it does

Convert MCP server tools into Glyph Protocol glyphs

Best for

When wrapping MCP tools with agent cost/risk metadata for tool selection and confirmation workflows.

Inputs
  • · MCP client or tools array
  • · Tool callability function
Outputs
  • · Glyph objects with cost/risk metadata
  • · Cost model mapping (readOnlyHint, destructiveHint, idempotentHint)
Requires
  • · @modelcontextprotocol/sdk
  • · Glyph Protocol (@glyphp/server)
Preconditions
  • · MCP client instance or tools array + callTool function
  • · Glyph server setup
Failure modes
  • · Malicious servers claiming false readOnlyHint annotations
  • · Tool name heuristics may incorrectly force danger tier
  • · Missing risk signals for novel tool patterns
Trust signals
  • · Adapter overrides benign annotations with keyword heuristics (delete, destroy, write, drop, exec, update)
  • · Zero external dependencies
  • · Explicitly rejects claims that override inspection