{
  "title": "AgentShield Integration Guide",
  "sdk": {
    "npm": "npm install agentshield-js",
    "usage": "const AgentShield = require('agentshield-js');\nconst shield = new AgentShield({ apiKey: 'as_...' });\nconst result = await shield.verify('0x...', 1);\nif (!result.safe) console.log('DANGER:', result.recommendation);",
    "docs": "https://www.npmjs.com/package/agentshield-js"
  },
  "mcp": {
    "npm": "npx agentshield-mcp",
    "config": {
      "mcpServers": {
        "agentshield": {
          "command": "npx",
          "args": [
            "agentshield-mcp"
          ]
        }
      }
    },
    "tools": [
      "verify_contract",
      "scan_contract",
      "deep_scan",
      "monitor_wallet",
      "freeze_wallet",
      "get_alerts",
      "get_stats"
    ],
    "docs": "https://www.npmjs.com/package/agentshield-mcp"
  },
  "langchain": {
    "description": "Use AgentShield as a LangChain tool",
    "code": "import { DynamicTool } from 'langchain/tools';\nconst verifyTool = new DynamicTool({\n  name: 'verify_contract',\n  description: 'Check if a smart contract is safe before transacting',\n  func: async (contract) => {\n    const res = await fetch('https://agentshield.win/verify?contract=' + contract);\n    return JSON.stringify(await res.json());\n  },\n});"
  },
  "openrouter": {
    "description": "Add AgentShield to OpenRouter function calling",
    "tool_schema": {
      "type": "function",
      "function": {
        "name": "verify_contract",
        "description": "Verify smart contract safety via AgentShield",
        "parameters": {
          "type": "object",
          "properties": {
            "contract": {
              "type": "string",
              "description": "Contract address"
            },
            "chain": {
              "type": "string",
              "default": "1"
            }
          },
          "required": [
            "contract"
          ]
        }
      }
    }
  },
  "directories": {
    "smithery": "https://smithery.ai — Submit: npx agentshield-mcp",
    "mcp_hub": "https://mcphub.io — Category: Security",
    "glama": "https://glama.ai/mcp/servers — Submit your MCP server"
  },
  "rest_api": {
    "base_url": "https://agentshield.win",
    "auth": "X-API-Key header (get key at /checkout)",
    "openapi": "https://agentshield.win/openapi.json"
  }
}