Think of this as a package manager specifically for AI assets: prompts, skills, MCP configs, and scripts that agents can discover and install during tasks. It exposes 20+ tools covering the full lifecycle, from tokrepo_discover (turn a capability gap into ranked candidates with verification evidence) through tokrepo_install_plan and tokrepo_codex_install (safe, policy-checked installs with rollback) to tokrepo_harvest (package local work for reuse after a task). The trust model is thorough: content hashes, SBOM-lite, signature evidence, policy gates, and trust scores before anything touches disk. Useful when you want agents to pull vetted building blocks instead of reinventing boilerplate, or when you want to capture and share reusable artifacts from a session. Pairs with tokrepo init-agent to embed discovery hints in AGENTS.md and tool configs so future agents know to call it during planning.
Public tool metadata for what this MCP can expose to an agent.
tokrepo_discoverPlanning-time capability discovery for agents. Call during autonomous planning before inventing local one-off skills, scripts, prompts, MCP configs, or workflows.5 paramsPlanning-time capability discovery for agents. Call during autonomous planning before inventing local one-off skills, scripts, prompts, MCP configs, or workflows.
taskstringlimitnumbertargetstringany · all · codex · claude_code · gemini_cli · cursordefault: anyconstraintsobjectenvironmentobjecttokrepo_searchSearch TokRepo assets by query, kind, target, and policy. Use as a lower-level fallback after tokrepo_discover.5 paramsSearch TokRepo assets by query, kind, target, and policy. Use as a lower-level fallback after tokrepo_discover.
kindstringlimitnumberquerystringpolicystringallow · confirm · stage_only · denytargetstringany · all · codex · claude_code · gemini_cli · cursordefault: anytokrepo_detailRead full TokRepo asset detail and metadata by UUID.1 paramsRead full TokRepo asset detail and metadata by UUID.
uuidstringtokrepo_verifyVerify asset trust, content hash, install-plan shape, permissions, policy decision, trust_score_v2, blockers, and warnings before activation.3 paramsVerify asset trust, content hash, install-plan shape, permissions, policy decision, trust_score_v2, blockers, and warnings before activation.
uuidstringstrictbooleantargetstringcodexdefault: codextokrepo_install_planReturn the typed install plan for an asset before any write. Includes preconditions, actions, risk profile, policy, rollback, post-verify, trust, and provenance when available.2 paramsReturn the typed install plan for an asset before any write. Includes preconditions, actions, risk profile, policy, rollback, post-verify, trust, and provenance when available.
uuidstringtargetstringcodexdefault: codexAgent-native MCP server for TokRepo: session bootstrap, capability discovery, search/detail, trust verification, install planning, Codex staging, lifecycle inspection/update/uninstall/rollback, handoff/harvest planning, and human-confirmed publishing of reusable AI assets.
claude mcp add tokrepo -- npx -y tokrepo-mcp-server
Add to your MCP config (~/.cursor/mcp.json):
{
"mcpServers": {
"tokrepo": {
"command": "npx",
"args": ["-y", "tokrepo-mcp-server"]
}
}
}
codex mcp add tokrepo -- npx -y tokrepo-mcp-server
gemini settings mcp add tokrepo -- npx -y tokrepo-mcp-server
Once connected, your AI assistant can:
evidence_bundle, SBOM-lite, signature_evidence, blockers, and warningsevidence_bundle, SBOM-lite, and signature_evidencetokrepo_harvest before any push, including private package drafts, quality_gate, package manifest, SBOM-lite, and provenancetokrepo init-agent --target all so future agents know to call TokRepo during planningserver.json, A2A agent card, portable agent manifest, tool catalog, .well-known, agents.txt, llms.txt, and npm metadata are kept machine-readable for agents and registries| Tool | Description |
|---|---|
tokrepo_session_init | Session bootstrap with high-trust assets, project memory pointer, recent handoffs, and policy pack URL |
tokrepo_discover | Planning-time capability discovery from a task, environment, and constraints |
tokrepo_find_for_task | Atomic find action for a concrete task; returns ranked assets, match reasons, install command, and URL |
tokrepo_resolve_capability | Resolve a capability gap into a selected asset, verification evidence, install plan, lifecycle contract, next MCP calls, and CLI fallbacks |
tokrepo_search | Search assets by keyword/tag with agent_fit ranking |
tokrepo_detail | Get full asset details by UUID |
tokrepo_edges | Inspect requires, extends, and co-used asset graph edges before planning installs |
tokrepo_install_plan | Get agent-native install plan v2 with rollback, evidence_bundle, SBOM-lite, and signature_evidence |
tokrepo_verify | Verify trust, hashes, permissions, policy, evidence_bundle, SBOM-lite, and signature_evidence before activation |
tokrepo_codex_install | Dry-run, stage, or install a Codex skill safely |
tokrepo_installed | List TokRepo-managed Codex installs |
tokrepo_update | Dry-run or update managed Codex installs |
tokrepo_uninstall | Dry-run or remove a managed Codex install |
tokrepo_rollback | Dry-run or roll back a prior Codex install session |
tokrepo_handoff_plan | Read-only packaging plan with quality_gate and package manifest for reusable local work after a task |
tokrepo_harvest | Read-only package draft generator for reusable changed or explicit local files after a task |
tokrepo_push | Push one explicit asset to TokRepo after user confirmation |
You: "Find me a good MCP server for databases"
AI: [calls tokrepo_resolve_capability] → Ranks DBHub, Supabase MCP, PostgreSQL MCP and returns verification/install-plan evidence for the selected candidate
You: "What video assets should I install?"
AI: [calls tokrepo_resolve_capability] → Finds relevant skills, checks fit, trust, and policy, then asks before installing
You: "Install that cursor rules asset"
AI: [calls tokrepo_verify] → Checks trust_score_v2, permissions, blockers, and warnings
AI: [calls tokrepo_install_plan] → Reviews policy and actions
AI: [calls tokrepo_codex_install with dry_run=false, confirm=true] → Writes only after explicit confirmation
AI: [calls tokrepo_rollback with dry_run=true] → Shows exactly what would be removed before rollback
You: "We created a reusable project rule; save it for future agents"
AI: [calls tokrepo_harvest] → Returns explicit files, hashes, quality_gate, package drafts, SBOM-lite, provenance, metadata defaults, and private-by-default push guidance
AI: [asks for confirmation before tokrepo_push] → Uploads only reviewed files
Run this once in a project:
npx tokrepo init-agent --target all
It writes managed instructions to AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, GitHub Copilot instructions, Cline rules, Windsurf rules, Roo rules, OpenHands microagents, Aider conventions, .mcp.json, and .tokrepo/agent.json. The rule is simple: during planning, when the agent sees a capability gap, it should call tokrepo_resolve_capability or tokrepo_discover before inventing a one-off local tool. After a task, agents can call tokrepo_harvest or run tokrepo harvest --changed --json to suggest reusable files for user-confirmed private publishing.
Registries and agents can discover this server through:
Use https://tokrepo.com/agent-ecosystem.json for agent marketplace submissions, starter templates, README snippets, install guides, and example projects. It contains canonical listing copy, ecosystem channels, target project-memory files, and verification commands.
TokRepo emits anonymous aggregate funnel events for tokrepo_resolve_capability, tokrepo_discover, tokrepo_verify, tokrepo_install_plan, install dry-runs, installs, harvests, handoffs, and pushes. It does not send task text or file contents. Disable with TOKREPO_TELEMETRY=0.
TokRepo is the open registry for AI assets — like npm for packages, but for AI skills, prompts, MCP configs, and workflows.
npx tokrepo search "query" / npx tokrepo install <uuid>MIT