mcp-ratchet

hexxla/mcp-ratchet
★ 1 stars Go 🔒 Security Updated today
Go package for enforcing tool call order in MCP servers. Token-based dependency system with multi-level chains, expiry, one-time use, and compliance enforcement.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-ratchet": {
      "command": "go",
      "args": [
        "run",
        "github.com/hexxla/mcp-ratchet@latest"
      ]
    }
  }
}

README Excerpt

A Go package for enforcing tool call order in MCP servers using configurable token-based dependencies. LLMs often attempt to call tools in the wrong order or without necessary prerequisites, leading to: - Failed API calls due to missing authentication or setup - Incorrect results from tools that depend on prior state

Tools (11)

error_messageexpirymy_toolone_time_useprerequisitesession_createdtoken_consumedtoken_createdtool_call_attempttool_call_failuretool_call_success

Topics

dependency-managementgogolangllmmcpmcp-servermodel-context-protocoltoolingworkflow-enforcement