{
  "schema_version": "2026-05-14",
  "name": "TokRepo",
  "description": "Agent-native infrastructure for discovering, planning, installing, and publishing reusable AI assets.",
  "homepage_url": "https://tokrepo.com",
  "ecosystem_distribution": "https://tokrepo.com/agent-ecosystem.json",
  "task_economy_contract": "https://tokrepo.com/agent-task-economy.json",
  "distribution_matrix": "https://tokrepo.com/agent-distribution-matrix.json",
  "provider": {
    "name": "TokRepo",
    "url": "https://tokrepo.com"
  },
  "protocols": {
    "mcp": {
      "manifest_url": "https://tokrepo.com/.well-known/mcp/server.json",
      "hosted_endpoint": "https://tokrepo.com/mcp",
      "hosted_transport": "streamable_http_json_rpc",
      "package": "tokrepo-mcp-server",
      "install": "npx -y tokrepo-mcp-server",
      "session_bootstrap_tool": "tokrepo_session_init",
      "primary_tool": "tokrepo_resolve_capability",
      "trust_tool": "tokrepo_verify",
      "install_plan_tool": "tokrepo_install_plan",
      "handoff_tool": "tokrepo_handoff_plan",
      "discovery_tool": "tokrepo_discover",
      "harvest_tool": "tokrepo_harvest"
    },
    "a2a": {
      "agent_card_url": "https://tokrepo.com/.well-known/agent-card.json"
    },
    "openapi": {
      "url": "https://tokrepo.com/openapi.json"
    }
  },
  "agent_bootstrap": {
    "command": "npx -y tokrepo@latest init-agent --target all",
    "cli_command": "tokrepo init-agent --target all",
    "writes": [
      "AGENTS.md",
      "CLAUDE.md",
      "GEMINI.md",
      ".cursor/rules/tokrepo.mdc",
      ".github/copilot-instructions.md",
      ".github/instructions/tokrepo.instructions.md",
      ".clinerules/tokrepo.md",
      ".windsurf/rules/tokrepo.md",
      ".roo/rules/tokrepo.md",
      ".openhands/microagents/repo.md",
      "CONVENTIONS.md",
      ".mcp.json",
      ".tokrepo/agent.json"
    ]
  },
  "recommended_agent_flow": [
    "call tokrepo_session_init once at session start",
    "load .tokrepo/agent.json when present",
    "inspect TokRepo.lock or .tokrepo/state.json with tokrepo installed --project --json before changing managed assets",
    "detect_capability_gap",
    "call tokrepo_resolve_capability",
    "call tokrepo_discover",
    "call tokrepo_detail",
    "call tokrepo_verify",
    "inspect evidence_bundle, SBOM, and signature_evidence",
    "call tokrepo audit when a persistent trust-history snapshot is needed",
    "call tokrepo_install_plan",
    "dry_run_or_stage_when_uncertain",
    "inspect installed state, update, uninstall, or rollback through lifecycle tools when modifying managed assets",
    "verify_user_goal",
    "call tokrepo_harvest --changed or tokrepo harvest --changed --json for reusable local work",
    "call tokrepo_handoff_plan or tokrepo agent-handoff --json for reusable local work",
    "check handoff quality_gate before any tokrepo_push"
  ],
  "machine_readable_surfaces": [
    "https://tokrepo.com/.well-known/tokrepo.json",
    "https://tokrepo.com/.well-known/mcp.json",
    "https://tokrepo.com/mcp",
    "https://tokrepo.com/.well-known/mcp/server.json",
    "https://tokrepo.com/.well-known/agent-card.json",
    "https://tokrepo.com/.well-known/tool-catalog.json",
    "https://tokrepo.com/.well-known/tokrepo-trust.json",
    "https://tokrepo.com/policy-packs/default-agent-policy.json",
    "https://tokrepo.com/evals/agent-baseline.json",
    "https://tokrepo.com/evals/agent-discovery.json",
    "https://tokrepo.com/evals/agent-onboarding-compliance.json",
    "https://tokrepo.com/evals/trust-evidence-coverage.json",
    "https://tokrepo.com/evals/multi-agent-compatibility.json",
    "https://tokrepo.com/schemas/agent-memory.schema.json",
    "https://tokrepo.com/schemas/tokrepo-lock.schema.json",
    "https://tokrepo.com/schemas/tokrepo-project-state.schema.json",
    "https://tokrepo.com/schemas/agent-evidence-bundle.schema.json",
    "https://tokrepo.com/schemas/handoff-package.schema.json",
    "https://tokrepo.com/agent-ecosystem.json",
    "https://tokrepo.com/agent-task-economy.json",
    "https://tokrepo.com/agent-distribution-matrix.json",
    "https://tokrepo.com/agents.txt",
    "https://tokrepo.com/llms.txt",
    "https://tokrepo.com/llms-full.txt",
    "https://tokrepo.com/schemas/capability-resolution.schema.json",
    "https://tokrepo.com/schemas/harvest-report.schema.json"
  ],
  "trust": {
    "default_install_policy": "dry_run_first",
    "verification": "tokrepo_verify or tokrepo verify <uuid> --target codex --json before activation",
    "audit": "tokrepo audit <uuid> --target codex --json for a portable trust-history snapshot",
    "publishing_policy": "human_confirmed_explicit_files_only",
    "telemetry": "anonymous aggregate funnel events only; no task text or file contents",
    "capability_resolution": "tokrepo_resolve_capability or tokrepo resolve \"<task>\" --json before rebuilding one-off local assets",
    "harvest": "tokrepo_harvest or tokrepo harvest --changed --json proposes private reusable package drafts and never publishes automatically"
  }
}
