1mcp-preparation-setup
Skill538 starsChanged 15 months agoApache-2.0View on GitHub
Configure 1MCP backend preparation for selected projects and worktrees. Use when installing or adapting a preparation recipe, authoring a missing recipe or helper, enabling automatic preparation, or diagnosing recipe readiness. Covers dynamic MCP backends; ordinary MCP server launch setup uses mcp setup.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- 1mcp-cliSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read only the matching backend reference: CodeGraph, Code Review Graph, or Serena.
- Very specific: line 47
Follow the returned job with status or bounded wait --wait-ms 5000.
- Distinctive: line 48
Verify the post-action probe.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set up backend preparation
Deliver a configured recipe and evidence for its declared readiness scope. Installing this skill alone changes no backend settings. Use the installed 1MCP CLI and its current help and instructions; recipe support and native backend behavior vary by version.
Establish the target
Identify the runtime (--url or --context, plus configuration location and filters), assigned checkout or selected project-set member, configured server name, native version, current recipe and effective permissions. Normal local calls use the verified startup or worker assignment and omit --project and --project-owner. Keep any explicit target override through discovery, preparation, schema inspection, and invocation; an override does not change the session default.
Follow current bootstrap guidance for ownership. Codex hosts with trustworthy thread lookup resolve their own owner automatically; hosts without that integration use their own bootstrap-provided --project-owner reference. Each worker needs its own explicit assignment and owner. Explicit --url calls remain credentialless unless an owner is explicitly supplied; local credentials do not authorize remote lifecycle controls. Resolve missing assignment before project-specific work.
Reuse current hook-delivered instructions; otherwise fetch scoped 1mcp instructions. Inspect the server and applicable instructions, then tool schemas before invoking tools through 1mcp run. 1mcp project prepare inspect <server> checks readiness even when discovery is empty and does not start preparation. Native CLI help and read-only diagnostics can establish recipe behavior; upstream MCP calls stay routed through 1MCP.
Read only the matching backend reference: CodeGraph, Code Review Graph, or Serena. For other backends, discover their native public setup and readiness interfaces. These examples are conditional techniques, not bundled production recipes.
Resolve or author the recipe
Reuse a compatible supplied recipe when available. Otherwise read the current recipe contract, checking it against the installed version. In a source checkout, use its matching document and schemas. Produce a named configured-command JSON definition and only the helper files needed to translate native behavior into that contract.
- Declare backend/version/platform compatibility, readiness scope, affected tools, supported actions, and helper identity. Keep machine-specific paths and inputs in runtime configuration. Commands use executable/argument arrays, literal placeholders, and the selected checkout as cwd; they are not shell command strings.
- Reuse the installed global backend CLI and its public commands for startup, probes and actions. Resolve executable names through the runtime environment; avoid paths into version-manager installations and imports from internal package layouts. Diagnose the runtime PATH when shell and runtime resolution differ. A preparation repair does not justify a private backend copy, new installation directory or wrapper; change the installation model only when the user requests it. Keep backend compatibility checks separate from executable location so a Node upgrade alone does not invalidate the recipe.
- Validate recipe shape with the installed runtime's schema/loading path. The demonstration fixture proves the generic contract only; it is not an integration for a native indexer.
- Probes and optional progress commands must be read-only and bounded. For an index, check checkout identity, completeness, supported source coverage, and freshness including dirty and untracked additions, edits, and deletions. A file existing or a successful action exit is insufficient.
- Map verified states to
ready,requiredwith its supported action, orconflict. Where supported by the installed recipe schema, map known compatibility failures tounsupportedand inconclusive probes tounknownwithreason: "probe_failed"and actionable instructions. Unmapped exits and failed checks remain unknown; never translate uncertainty into ready. - Establish native writer coordination and attached-process cancellation behavior. Preserve foreign locks and work. Do not infer those guarantees from 1MCP process containment or fixture success.
- Bump recipe/helper revisions when behavior changes; declare helper files so identity reflects their content. Avoid changing helpers during admitted jobs.
If native guarantees remain unverified, explain the specific limitation and affected scope. Experimental installation is allowed when the user explicitly accepts it, including acceptance already given in this task. Experimental status never licenses a false readiness result. A request to inspect or draft alone does not authorize activation.
Apply authorized configuration
Back up the current configuration and compare it again before applying a scoped change. Preserve unrelated fields and existing explicit backend/project disables. Attach the named definition by matching ID and absolute file path to the existing server/template; keep allowedActions separate from the recipe's declared actions.
For requested automatic preparation across authorized checkouts, use a named definition with activation: "setup". For project-only automatic preparation, retain project opt-in and update the effective .1mcprc by configured server name, respecting linked-worktree inheritance. Clarify activation scope only when it cannot be inferred from the request. Do not combine named and inline integration definitions.
Authorize only the requested actions. Installation, paid services, rebuilds, wider checkout access, and removal of explicit disables require their own applicable authorization. A denied action is not a reason to widen permissions. Read back effective runtime configuration and readiness after installation; a written file does not establish that the runtime loaded it.
Verify and close out
Use an isolated checkout for source-changing checks. Verify the declared scope with a cold checkout, an already-ready checkout, supported source changes, and checkout isolation. Test conflict and failure behavior without interfering with foreign processes. For executable-resolution changes, test an alternate PATH against the existing global installation and a fresh backend launch; an already-running process does not prove the new launch configuration works. If native concurrency/cancellation cannot be exercised, report that gap explicitly.
- Inspect readiness for the exact target and operation. Start permitted work with
1mcp project prepare start <server>only when needed. - Follow the returned job with
statusor boundedwait --wait-ms 5000. Keep the same runtime, project, owner, filters, and operation. A job performs one action; terminal failure or another required action needs diagnosis and deliberate retry, not a retry loop. - Verify the post-action probe. Refresh server discovery and inspect the tool schema, then submit a fresh tool call. Preparation never replays the original request. Check that the returned result belongs to the selected checkout and reflects the test source.
- Release only task-owned bindings when their work is finished. For disposable checkout removal, follow current
project releaseand manager/operatorproject drainguidance; require confirmed completion before removal and preserve other owners. Turn completion alone is not session termination. Do not add Git or client hooks as a side effect of recipe setup.
Report changed paths, activation scope and allowed actions, configuration/readback evidence, probe and real-tool results, and any unverified guarantees. Distinguish installed configuration, recipe readiness, and native usability. For rollback, disable just the server's preparation.enabled or the selected project's preparation preference; restore backups only after checking for intervening unrelated changes. Name retained verification resources and their blockers instead of claiming cleanup finished.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

