{
  "schema_version": "1.0",
  "name": "ContextShim",
  "canonical_url": "https://contextshim.com",
  "description": "Deterministic inline LLM wire gateway that intercepts OpenAI, Anthropic, Responses, and Cloud Ollama API calls to answer directly in 0 upstream tokens, inject rule-based context, or record SHA-256 wire receipts.",
  "provider": {
    "organization": "ContextShim",
    "url": "https://contextshim.com",
    "support_email": "support@contextshim.com"
  },
  "capabilities": {
    "streaming": true,
    "mcp_streamable_http": true,
    "cas_rule_fencing": true,
    "zero_token_emulation": true,
    "context_injection": true,
    "wire_protocols": [
      "openai-chat",
      "anthropic-messages",
      "openai-responses",
      "ollama-cloud"
    ]
  },
  "endpoints": {
    "llms_txt": "https://contextshim.com/llms.txt",
    "mcp": "https://contextshim.com/mcp",
    "mcp_manifest": "https://contextshim.com/.well-known/mcp.json",
    "health": "https://contextshim.com/healthz",
    "openai_base_url": "https://contextshim.com/v1",
    "anthropic_base_url": "https://contextshim.com",
    "ollama_host": "https://contextshim.com",
    "rules_api": "https://contextshim.com/api/v1/rules",
    "simulate_api": "https://contextshim.com/api/v1/simulate",
    "traces_api": "https://contextshim.com/api/v1/traces",
    "mint_key_api": "https://contextshim.com/api/v1/keys/mint"
  },
  "authentication": {
    "schemes": [
      "bearer",
      "x-contextshim-key",
      "x-api-key"
    ],
    "self_serve_mint_endpoint": "https://contextshim.com/api/v1/keys/mint"
  },
  "skills": [
    {
      "id": "contextshim_list_rules",
      "name": "contextshim_list_rules",
      "description": "List active or all deterministic wire interception rules in ContextShim ordered by priority."
    },
    {
      "id": "contextshim_upsert_rule",
      "name": "contextshim_upsert_rule",
      "description": "Create or update a ContextShim wire rule with compare-and-swap (CAS) expected_version concurrency protection."
    },
    {
      "id": "contextshim_simulate",
      "name": "contextshim_simulate",
      "description": "Simulate or run a live ContextShim wire call across OpenAI Chat, Anthropic Messages, OpenAI Responses, or Cloud Ollama, returning wire diffs and receipt headers."
    },
    {
      "id": "contextshim_list_traces",
      "name": "contextshim_list_traces",
      "description": "Fetch recent intercepted LLM wire traces with mode, matched rules, latency, token savings, and SHA-256 request/response digests."
    },
    {
      "id": "contextshim_mint_key",
      "name": "contextshim_mint_key",
      "description": "Mint a self-serve ContextShim developer API key (cshim_live_*) for Free Developer, Pro, or Team sandboxes."
    },
    {
      "id": "contextshim_get_insights",
      "name": "contextshim_get_insights",
      "description": "Inspect Top-of-Mind project entities, learned user-correction candidate rules, and empirical rule acceptance vs. pain telemetry."
    },
    {
      "id": "contextshim_promote_candidate",
      "name": "contextshim_promote_candidate",
      "description": "Promote or dismiss a self-discovered behavioral candidate rule into a live CAS-fenced ContextShim rule."
    }
  ]
}