AI Agents
MPS is designed to work with AI coding agents such as Claude Code, Copilot, Junie, and OpenAI Codex. Through the Projectional Agent Toolkit, an agent works with your languages and models the way MPS does: through the structure of the model, not through text edits of .mps files. This keeps the agent's changes consistent with your concepts, constraints, and references.
What your agent can do for you
Once connected, an agent can handle tasks across the full MPS lifecycle, for example:
Build and evolve languages from a description. Describe a DSL or a new feature in plain language and let the agent create concepts, editors, constraints, typesystem rules, and generators — checking every change against MPS's live problem detector as it goes.
Diagnose typesystem, dataflow, and generator issues. Ask why a node has an unexpected type or which mapping rule, template, or macro produced a piece of generated code. The agent queries the live type checker, inspects dataflow graphs, and walks the generation trace instead of guessing.
See what you see in the IDE. The agent reads the node open in your editor, the current selection, the Inspector, or the MPS Console — and can inspect a rendered image of the editor to work with tables and diagrams.
Write, rebuild, and debug tests in a loop. The agent creates tests (including generator tests), regenerates models, runs standard MPS run configurations, and reads test results and the IDE log to fix failures.
Automate bulk model work and migrations. Refactor subtrees across models with references and imports repaired automatically, turn tabular data such as CSV files into DSL nodes in bulk, or apply pending migrations headlessly without modal wizards.
Several agents can even work on the same project at the same time — for example, on different aspects of a language. For more examples of what agents can do, see Practical ideas on what agents can do with MCP-enabled MPS.
Example prompts
Once your agent is connected, you can delegate multi-step MPS tasks in plain language:
Add a new language feature end to end:
Trace and fix a generator bug from the active editor:
Where to go next
The following pages take you from the first connection to a complete agentic workflow.
Quick setup
Connect your agent to MPS in a few steps: enable the MCP server, add it to your agent's configuration, and install the MPS skills in your project. The page also lists the IDE settings that keep modal dialogs from blocking the agent. Start here if you want to try the toolkit.
See Quick setup.
Projectional Agent Toolkit
The reference for everything the toolkit provides: the MCP tools, the catalog of bundled skills, project initialization and skill refresh, prompting tips, recommended agent configurations, and troubleshooting. Use it when you want to know what an agent can do in a specific area or how to get better results from it.
Spec-driven agentic development
An approach to development where you describe what you want in a specification and let agents do the implementation in MPS. Read this page to learn how to organize a larger piece of work around specifications instead of a long chat with an agent.