mps-run-configurations
Skill1.7k starsChanged 2 months agoApache-2.0View on GitHub
Create and execute IDE run configurations for MPS root nodes via MPS MCP — Java Application for `IMainClass` / `ClassConcept` with `main`, JUnit Tests for `ITestCase`. Use when launching DSL `main`-like roots, plain BaseLanguage `ClassConcept` mains, or MPS test cases from a node; reusing or replacing an existing run config; diagnosing `ClassNotFoundException`, `compileInMPS=false`, or "not runnable through this tool" failures.
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about JetBrains/MPS
- mbeddr/mps-gradle-plugin“Null pointer exception on generate”GitHub · May 18, 2020 · 1 reactions
- nebojsa-vuksic/skill-atlas“Scan every repository of an organization or user”GitHub · Oct 1, 2026
- modelix/modelix.editor“Implement MPS shortcuts”GitHub · Feb 21, 2023
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository83 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- actionsSkill
- bugfix-workflowSkill
- code-styleSkill
- commitsSkill
- debuggingSkill
- mps-aspect-accessoriesSkill
- mps-aspect-actionsSkill
- mps-aspect-behaviorSkill
- mps-aspect-constraintsSkill
- mps-aspect-dataflowSkill
- mps-aspect-editor-menus-and-keymapsSkill
- mps-aspect-editorSkill
- mps-aspect-generation-planSkill
- mps-aspect-generatorSkill
- mps-aspect-intentionsSkill
- mps-aspect-migrationsSkill
- mps-aspect-structure-conceptsSkill
- mps-aspect-textgenSkill
- mps-aspect-typesystemSkill
- mps-baselanguageSkill
- mps-build-languageSkill
- mps-consoleSkill
- mps-distribution-buildSkill
- mps-dsl-memorySkill
- mps-ide-pluginSkill
- mps-lang-core-xmlSkill
- mps-language-analysisSkill
- mps-language-aspects-overviewSkill
- mps-language-inheritanceSkill
- mps-language-modularitySkill
- mps-mcp-workflowSkill
- mps-model-manipulationSkill
- mps-node-editingSkill
- mps-project-managementSkill
- mps-quotationsSkill
- mps-testsSkill
- registrySkill
- skill-optimization-studySkill
- ssrSkill
- teamcity-cliSkill
- actionsSkill
- bugfix-workflowSkill
- code-styleSkill
- commitsSkill
- debuggingSkill
- mps-aspect-accessoriesSkill
- mps-aspect-actionsSkill
- mps-aspect-behaviorSkill
- mps-aspect-constraintsSkill
- mps-aspect-dataflowSkill
- mps-aspect-editor-menus-and-keymapsSkill
- mps-aspect-editorSkill
- mps-aspect-generation-planSkill
- mps-aspect-generatorSkill
- mps-aspect-intentionsSkill
- mps-aspect-migrationsSkill
- mps-aspect-structure-conceptsSkill
- mps-aspect-textgenSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 24
Reuse before you create: If the user already has a working run config, prefer get_run_configurations() + execute_run_configuration by its …
- Distinctive: line 35
Keep the configuration name stable across iterations so step 2 idempotently overwrites itself rather than littering the IDE with duplicates.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Running MPS Root Nodes
Loading companion skills
Companion names in this skill are lazy dependencies: load only those relevant to the current task. If this skill came from an MCP server, use the host's skill loader to resolve the companion's unique discovered entry URI on the same host-assigned originating server. If the host has no server-backed skill loader, stop and report that limitation; do not silently fall back to a filesystem copy. If this skill came from a filesystem catalog, load the named sibling from that same catalog at <skills-root>/<skill-name>/SKILL.md, even if remote skill loaders are also available. Do not invent a tool name or server endpoint.
This skill covers the path from "an MPS root node exists in a model" to "a green IDE run / red stack trace in my hand," using only MCP tools. It targets user-level artifacts (DSL main-like roots, plain ClassConcept mains, test cases) — not launching MPS itself (the MPS / MPS (2nd inst.) configs are a different topic, see AGENTS.md or CLAUDE.md).
Critical Directives
execute_run_configurationandget_run_configurationsare provided both by MPS and IDEA. Use the ones provided by MPS for running MPS nodes/tests.mps_mcp_create_run_configurationaccepts root nodes only, and only three shapes: implementsIMainClass, implementsITestCase, or is aClassConceptwith a qualifying staticmain. Pointing it at a method body or other non-root yields the non-root rejection. Seereferences/runnable-shapes.mdfor the exact predicate and producer precedence.- MAKE the module, not just the model, before running. Model MAKE regenerates
source_genbut does not always compile intoclasses_gen; running launches bytecode, so a staleclasses_gensilently runs old code. Seereferences/compile-before-run.md. - Keep
configurationNamestable across iterations. The tool replaces the existing config of the same<type>.<name>rather than creating duplicates — idempotent setup is the goal. Use distinct names only when you actually want parallel configs. - Do not silently flip
compileInMPS=falseto true.Compile.Noneand JPS-compile settings are usually intentional (sandbox modules, externally-built modules, packaged libraries). Confirm with the user; otherwise take the IDEA MCP file-path fallback. - Prefer the source-root path over generated-Java entry points. Source-root configs survive regeneration; file-path configs against
source_genonly work whileclasses_genis fresh. - MPS MCP
execute_run_configuration/get_run_configurationsdo not surface run points undersource_gen. Use the IDEA MCP variants when you need afilePath+linelauncher for generated Java. - Reuse before you create. If the user already has a working run config, prefer
get_run_configurations()+execute_run_configurationby its existing name — duplicates are pointless.
Common Workflow
End-to-end pattern for "I changed a DSL root, run it":
mps_mcp_alter_nodes MAKEon the module of the DSL root,rebuild: true.mps_mcp_create_run_configurationon the DSL root with a stableconfigurationName(the generated class FQN is a good default for IMainClass; leave blank forClassConceptto match the IDE gutter'sClass <ClassName>default).execute_run_configuration(of MPS MCP, not IDEA's) by name withwaitForExit: trueand a generoustimeout.- On
Could not find or load main class, step 1 didn't reachclasses_gen— re-run it.
Keep the configuration name stable across iterations so step 2 idempotently overwrites itself rather than littering the IDE with duplicates.
Related Skills
mps-baselanguage— when the runnable root is a plainClassConceptyou authored or need to inspect (mainmethod shape, BaseLanguage editing).mps-aspect-generator— when stale or wrong generated Java is the root cause of an execution failure.bugfix-workflow— when an execution failure points back at the generator or model rather than the launcher.
Reference Index
- Open
references/runnable-shapes.mdwhen you need to confirm whether a concept is launchable, look up the exactmainpredicate orcompileInMPSgate, or interpret a "not runnable through this tool" / "compileInMPS=false" refusal. - Open
references/create-and-execute.mdwhen you need the exactmps_mcp_create_run_configuration/execute_run_configuration/get_run_configurationscall shape, naming and replacement semantics, or the difference between MPS MCP and IDEA MCP variants. - Open
references/classconcept-and-fallbacks.mdwhen aClassConceptrun path doesn't fire —compileInMPS=false, missingmain, ambiguous duplicates — and you need the IDEA MCP file-path fallback or the persisted-XML structure of the node-aware Java Application config. - Open
references/compile-before-run.mdwhen the run fails withClassNotFoundException, you're deciding between module MAKE and model MAKE, or output disagrees with edited source. - Open
references/decision-matrix.mdfor the at-a-glance situation→approach table covering every supported launch path. - Open
references/common-failures.mdfor the symptom→cause→fix table covering every published error and its remediation.
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.

