Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Assistant Setup

mdt’s official assistant profiles are intentionally lightweight: they provide ready-to-copy MCP configuration snippets and repo-local guidance, not a marketplace or plugin registry.

  1. Run mdt assist <assistant> to print an official setup profile.
  2. Copy the MCP snippet into your assistant’s configuration.
  3. Add the suggested repo-local guidance to your project instructions.
  4. Let the assistant inspect and synchronize docs through mdt mcp.

Example

mdt assist claude

This prints:

  • an MCP server configuration snippet that runs mdt mcp
  • repo-local guidance such as reusing sources before creating new ones
  • assistant-specific notes for the selected profile

Why this approach

The goal is to reduce setup friction without inventing a new extension ecosystem.

The first official profiles focus on:

  • portable MCP configuration — the same mdt mcp server can be reused across assistants
  • repo-local guidance — your assistant should follow the same mdt workflow every time
  • human-controlled adoption — you can copy, review, and customize the generated setup before using it

Repo-local guidance to keep

Regardless of assistant, keep guidance like this close to your project instructions:

  • Prefer reuse before creation: run mdt_find_reuse or mdt_list before introducing a new source block.
  • Use .templates/ as the canonical template location.
  • Use mdt_preview to inspect source and target output before syncing changes.
  • Run mdt_check after documentation edits and mdt_update when target blocks are stale.

Agent skill package

For Pi users, install the official mdt skill package to give your agent full knowledge of template syntax, MCP tools, CLI workflows, and configuration:

pi install npm:@m-d-t/skills

Or try it for a single session:

pi -e npm:@m-d-t/skills

The skill package teaches agents how to create and manage provider/consumer blocks, apply transformers for source-file doc comments, use MCP tools with best practices, and configure mdt.toml.

For project-level adoption, add it to .pi/settings.json so every contributor gets the skill automatically:

{
	"packages": ["npm:@m-d-t/skills"]
}

Supported first-slice profiles

  • generic
  • claude
  • cursor
  • copilot
  • pi

As the project evolves, these profiles can grow into richer setup helpers, but the initial focus is pragmatic: make assistant setup reproducible and easy to adopt.