Instructions Command
Client hooks run bootstrap to establish ownership and fetch guidance through instructions. Agents run instructions separately only when current guidance is missing or needs refreshing; it does not create an owner credential. See the startup workflow.
Show CLI-mode instructions for AI agents using a running 1MCP serve instance.
Reuse known tool schemas within the session, including across projects, when the tool contract is unchanged. Keep project-specific instructions, readiness, authorization, and target selection current. Refresh server and tool inspection when information is missing, capabilities change, preparation completes, or relevant failures occur. Never automatically replay failed tool calls.
Synopsis
1mcp instructions [server] [options]Description
Without a server target, the instructions command is the entrypoint for CLI-mode agent workflows. It prints:
- A fixed playbook telling the agent to use
inspectbeforerun - A server summary section
- A server details section
- Available per-server instruction blocks and configured overrides
Use this command first when an agent or terminal session needs current guidance from the running 1MCP instance.
Without a server target, instruction delivery applies the current project selection, permissions, and filters without starting template backends or requesting their tool inventories. Tool counts appear as unknown until an inventory is queried. A cold template's upstream instructions may be unavailable; use 1mcp instructions <server> to start only the selected backend and read its instructions before invoking a tool. Warm instructions remain scoped to the selected session. This metadata does not establish backend preparation readiness.
Older runtimes without the instruction endpoint retain the legacy discovery behavior, which can initialize backends.
In practice, instructions is what replaces a large direct-MCP starting surface in the agent loop. Instead of expecting the agent to carry every available tool and schema up front, 1MCP gives it a compact playbook plus the current inventory, then tells it to narrow further with inspect.
Compact overview
1mcp instructions --compact requests a built-in server overview without the detailed playbook or server manuals. Bootstrap uses this mode automatically. The overview preserves availability notes, project-selection warnings, and template-fallback diagnostics. It does not establish readiness or replace 1mcp instructions <server> before tool use.
Bare 1mcp instructions still prints full guidance and works without an installed skill. Custom CLI templates remain intact even with --compact; older runtimes without compact delivery and the legacy compatibility path also return full output. --compact cannot be combined with a server name.
One Server's Instructions
1mcp instructions filesystemWith a server target, the command prints only that server's applicable instructions, including configured overrides. It uses targeted inspection and may start the selected template and query its inventory. It preserves the current project, owner, authorization, and filters; unrelated backends are not prepared. If the server has no manual, it reports that explicitly. Tool targets such as filesystem/read_file are rejected. Use inspect for tool inventories and schemas.
The targeted form reuses inspection's REST/MCP compatibility path. Bare instructions retains the bootstrap output below.
Output Structure
The output is designed to be agent-readable and includes:
=== PLAYBOOK ===- The required CLI workflow=== SERVER SUMMARY ===- One compact record per server=== SERVER DETAILS ===- Detailed records including instructions or availability notes
Each server entry includes metadata such as:
- Server name
- Server type
- Connection status
- Availability
- Tool count, or
unknownwhen not queried - Whether instructions are available
Options
--url, -u <url>- Override auto-detected 1MCP server URL--context <name>- Use a named Runtime Target Context and its saved bearer token, if any--preset, -p <name>- Use a preset when querying the running server--tag-filter, -f <expression>- Apply an advanced tag filter expression--tags <tag>- Apply simple comma-separated tags
Project selection and ownership
--project <path-or-label>— Select a checkout or a project-set member.--project-set <file>— Load a saved project set.--project-owner <file>— Override automatic owner lookup with this caller’s own bootstrap credential when required.
See Project and owner options for shared rules. Supported Codex sessions use their verified owner and assigned project automatically. Claude and hosts without automatic owner lookup must supply their own bootstrap --project-owner <own-file>. Keep explicit target overrides consistent across related calls.
Examples
Show the Full CLI Playbook
1mcp instructionsShow Instructions for a Filtered Server Set
1mcp instructions --tags backendUse a Saved Preset
1mcp instructions --preset developmentUse a Runtime Target Context
1mcp instructions --context prodRecommended Workflow
After reading applicable instructions, inspect only when information is missing or needs refreshing, capabilities change, preparation completes, or relevant failures occur. Then invoke using the known schema. This example assumes a configured filesystem server whose read_file tool can read README.md:
# When server instructions are missing or need refreshing:
1mcp instructions filesystem
# When the server tool inventory is needed:
1mcp inspect filesystem
# When the tool schema is missing or needs refreshing:
1mcp inspect filesystem/read_file
# Invoke using current instructions and the known schema:
1mcp run filesystem/read_file --args '{"path":"README.md"}'If authentication is required, the playbook directs the user or agent to retry with:
1mcp auth login --context <name> --token <token>See Also
- CLI Mode Guide - Why this progressive-disclosure workflow exists
- Inspect Command - Discover tools and inspect schemas
- Run Command - Call a selected tool
- CLI Setup Command - Install startup hooks and bootstrap docs for Codex or Claude
- Serve Command - Start the 1MCP server that provides the instruction output
