{
  "name": "CounterAgent",
  "version": "1.0.0",
  "description": "AI agent detection and TLS fingerprinting MCP server. Provides tools for identifying autonomous agents by JA4/JA4S/JA4H/JA4X signatures.",
  "protocol_version": "2025-03-26",
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": true
  },
  "tools": [
    {
      "name": "detect_agent",
      "description": "Analyze a request to determine if it originates from an AI agent. Accepts user-agent string, JA4 fingerprint, or full header map.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "user_agent": {"type": "string", "description": "HTTP User-Agent header value"},
          "ja4": {"type": "string", "description": "JA4 TLS fingerprint hash"},
          "ja4h": {"type": "string", "description": "JA4H HTTP fingerprint hash"},
          "headers": {"type": "object", "description": "Full HTTP header map for deep analysis"}
        }
      }
    },
    {
      "name": "lookup_fingerprint",
      "description": "Look up a JA4, JA4S, JA4H, or JA4X fingerprint in the signature database. Returns matching agent framework, confidence score, and metadata.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fingerprint": {"type": "string", "description": "The fingerprint hash to look up"},
          "type": {"type": "string", "enum": ["ja4", "ja4s", "ja4h", "ja4x"], "description": "Fingerprint type"}
        },
        "required": ["fingerprint", "type"]
      }
    },
    {
      "name": "list_agents",
      "description": "List all known AI agent frameworks in the database with their TLS and HTTP fingerprints.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "category": {"type": "string", "enum": ["llm-sdk", "browser-agent", "orchestrator", "crawler", "mcp-client"], "description": "Filter by agent category"},
          "limit": {"type": "integer", "default": 50}
        }
      }
    },
    {
      "name": "submit_fingerprint",
      "description": "Submit a new or unrecognized fingerprint for analysis and inclusion in the database.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fingerprint": {"type": "string"},
          "type": {"type": "string"},
          "context": {"type": "string", "description": "Where this fingerprint was observed"},
          "user_agent": {"type": "string"}
        },
        "required": ["fingerprint", "type"]
      }
    },
    {
      "name": "get_stats",
      "description": "Get current platform statistics including total agents tracked, unique fingerprints, and detection rates.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    }
  ],
  "resources": [
    {
      "uri": "counteragent://signatures/ja4",
      "name": "JA4 Signature Database",
      "description": "Complete JA4 TLS fingerprint database with agent attribution",
      "mimeType": "application/json"
    },
    {
      "uri": "counteragent://signatures/ja4h",
      "name": "JA4H HTTP Signature Database",
      "description": "HTTP header fingerprint database for agent detection",
      "mimeType": "application/json"
    },
    {
      "uri": "counteragent://agents/directory",
      "name": "Agent Directory",
      "description": "Catalogue of known AI agent frameworks with metadata and fingerprints",
      "mimeType": "application/json"
    }
  ],
  "authentication": {
    "type": "oauth2",
    "token_url": "https://auth.counteragent.io/oauth/token",
    "authorization_url": "https://auth.counteragent.io/oauth/authorize",
    "client_id_metadata_document": "https://counteragent.io/.well-known/client.json",
    "registration_url": "https://counteragent.io/docs/authentication",
    "scopes": ["read", "detect", "mcp"]
  },
  "server": {
    "url": "https://api.counteragent.io/mcp",
    "transport": "streamable-http"
  },
  "contact": "api@counteragent.io"
}
