New:Socket for Asana Is Now Available.Learn more
Sign In

mcp-butterknife

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcp-butterknife

Don't let your lobster see the butter knife. Credential-brokered API access for AI agents.

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
1
Created
Source

mcp-butterknife

Don't let your lobster see the butter knife.

An MCP server that gives AI agents secure, budget-gated API access — without ever exposing a single credential. Every call gets a cryptographic receipt.

How it works

Agent says: "Call OpenAI /chat/completions"
    |
butterknife --> HLOS Backend
    |           |           |
    Budget      Credential  Receipt
    check       injection   minted
    |
Agent gets: { status: 200, data: {...}, receipt_id: "rcpt_..." }

Your agent never sees, stores, or has access to any API key. Ever.

Quick Start

# Install
npm install -g mcp-butterknife

# Connect to HLOS (one-time setup)
mcp-butterknife --login

# Run the MCP server
mcp-butterknife

MCP Config (Claude Desktop, Cursor, etc.)

{
  "mcpServers": {
    "butterknife": {
      "command": "mcp-butterknife"
    }
  }
}

Then in your agent:

> Call OpenAI chat completions with "Hello world"
  Response received. receipt_id: rcpt_a1b2c3...

> Check my wallet
  View wallet at https://hlos.ai/wallet

What happens on each call

  • Auth — Your hlos_ token is validated against the HLOS kernel
  • Budget gate — Estimated cost checked against your wallet balance
  • Credential injection — API key injected server-side (never on your machine)
  • API call — Request forwarded to the provider
  • Metering — Actual usage charged to your wallet
  • Receipt — Cryptographic SignedReceiptV0 minted and stored
  • Response — Agent sees { status, data, receipt_id } only

The agent never sees keys, balances, or costs.

Tools

ToolDescription
butterknife_call_apiMake an API call through the secure pipeline
butterknife_store_credentialStore a credential (redirects to hlos.ai/vault)
butterknife_list_providersShow available providers
butterknife_walletCheck wallet status
butterknife_receiptsQuery the receipt chain
butterknife_add_providerRegister a custom provider

Supported Operations

v0.3.0 supports OpenAI chat completions:

{
  "provider": "openai",
  "method": "POST",
  "path": "/chat/completions",
  "body": {
    "model": "gpt-5.2-2025-12-11",
    "messages": [{ "role": "user", "content": "Hello" }]
  }
}

Other operations return an UNSUPPORTED_OPERATION error with guidance:

{
  "code": "UNSUPPORTED_OPERATION",
  "message": "Only OpenAI chat completions supported in v2 demo.",
  "next_step": "Use path /chat/completions."
}

Environment Variables

VariableDefaultDescription
HLOS_ACCESS_TOKENHLOS access token (or use --login)
HLOS_API_URLhttps://hlos.aiHLOS API base URL
HLOS_DASHBOARD_URLhttps://hlos.aiDashboard URL for redirect links
BUTTERKNIFE_VERBOSEfalseShow cost/debug info in tool responses

Credentials

Credentials are stored in ~/.hlos/credentials.json (mode 600). You can also set HLOS_ACCESS_TOKEN as an environment variable.

To get a token:

  • Visit hlos.ai/vault
  • Create an API token with mcp:* permissions
  • Run mcp-butterknife --login and paste the token

License

Apache 2.0

Keywords

mcp

FAQs

Package last updated on 05 Feb 2026

Related posts