- Browse tests, modules, and environments
- Edit tests and modules via tool calls (not direct YAML edits)
- Create tests from natural language
- Run sessions with a live browser
Prerequisites
- Momentic CLI installed: MCP is local only and requires the Momentic CLI on your machine.
- Project setup complete: Finish CLI setup and ensure your project includes
a valid
momentic.config.yaml.
Step 1: Set up your MCP client
All configurations below use an absolute path tomomentic.config.yaml. Replace
it with your project’s actual path. For additional options, see the
mcp command.
- Cursor
- VS Code (GitHub Copilot)
- Claude Code
- Codex
- OpenCode
Setup Steps:
- Open Cursor’s command palette (usually Cmd+Shift+P on Mac OS).
- Search for and select the “View: Open MCP Settings” command.
- Click “Add a new Custom MCP server”.
- Add a block in the JSON file for “momentic” based on the code sample below. Replace the path with your true
momentic.config.yamllocation. - Restart Cursor.
Full configuration example (all options)
Full configuration example (all options)
These settings are optional.
Step 2: Install the Momentic skill
The Momentic skill gives your assistant explicit operating guidance for Momentic workflows: it teaches the model how to build reliable tests, construct test steps correctly, reuse modules in your workspace, and more. Without a skill, coding agents are far more likely to make malformed tool calls and waste time on unnecessary actions. Theinstall-skills command automatically creates a skill markdown file and
place it into the correct directory for common agents. Skills can be customized
directly by editing the markdown file after they are generated.
- Cursor
- Claude Code
- Codex
- OpenCode
- Copilot (VS Code)
- Custom path
Global skill directory:
~/.cursor/skills/momentic-test/SKILL.mdCursor respected directories:~/.cursor/skills/<name>/SKILL.md~/.claude/skills/<name>/SKILL.md~/.codex/skills/<name>/SKILL.md
Step 3: Add an agent rule
Agent rules are stronger, global rulesets that agents are trained to strongly respect. They are usually stored in anAGENTS.md file at the root of your
codebase. Some agents also support rules in their own custom directory (e.g.
.cursor/rules).
We recommend adding one of the following lines to your rules to prevent agents
from bypassing Momentic’s MCP tools completely and directly editing your test or
module YAML files. Direct edits will likely lead to parsing and caching errors.
Step 4: Verify installation
The MCP server should now show up in a status page within your coding agent. CLI-based tools usually provide a command like/mcp to view all installed MCP
servers.
Start a new chat and ask the agent what MCP servers and tools are available. It
should list momentic_ tools such as momentic_test_environment_list. If tools
don’t appear, restart the IDE completely.
You’re now ready to use Momentic’s MCP! Select the Momentic skill and then
insert your desired goal.
Usage
- Model selection: Choose the latest frontier models for the best
performance. As of version
2.53.0, Momentic has benchmarked MCP performance onGPT5.3 Codex (High)andOpus 4.6 (High). If current agent performance is acceptable,Mediumreasoning can improve speed by about 20%. - Invoke Momentic’s skill: Explicitly invoke the skill in your assistant
(e.g. in Codex, type
/momenticand choose the autocompleted skill). - Prompting: Specific instructions generally lead to better outcomes. For exploratory testing, we recommend specifying a step limit so that the agent knows when to stop.
- Session management: Allow sessions to clean up properly. You should
notice the model calling the
momentic_session_terminatetool, which will close the browser instance. Repeatedly stopping your coding agent may leak browser resources and slow down your machine.
Full Chat Stream Example: Creating and Editing a YC Website Test
Full Chat Stream Example: Creating and Editing a YC Website Test
User Request:AI Response:I’ll help you create a new test for the YC website and then edit it according to
your specifications. Let me start by creating the test and then loading its data
to edit it.Creates TODO list:
Final Result: ✅ Created “demo-test” for YC website ✅ Implemented complete
user flow with proper assertions ✅ Test validates team size visibility and
content changes between tabs ✅ Ready to execute with 7 comprehensive test stepsThe AI successfully:
- Create a new test called demo test for the YC website [in_progress]
- Load the full data of the created test [pending]
- Edit the test to implement the specified flow [pending]
momentic_test_create
momentic_test_create
Parameters:Result: Successfully created test with ID
391f065b-48f3-4548-ab15-079543fa69e0
momentic_test_get
momentic_test_get
Parameters:Result: Retrieved test configuration with empty steps array
momentic_test_edit
momentic_test_edit
Parameters:Result: Test successfully updated with 7 automated steps:
- Navigate to https://www.ycombinator.com
- Click on “Companies” tab in navigation
- Verify companies list is displayed
- Click on DoorDash company profile
- Assert team size (8600) is visible
- Click on “Jobs” tab
- Assert detailed company description is not visible on jobs page
- Created a new test with appropriate configuration
- Loaded and analyzed the test structure
- Converted natural language requirements into specific test steps
- Chose DoorDash as the major brand company example
- Added proper assertions for team size visibility and content validation
- Generated executable test steps ready for automation
Configurable settings
For all available flags and environment variables, see the mcp command reference.Alternative protocol: Streamable HTTP
If you prefer to connect via the Momentic desktop app instead of the Stdio CLI, you can use Streamable HTTP. This requires the Momentic app to be running before connecting. Streamable HTTP Transport (available in Momentic >= 2.17.2):IDE configuration
- Cursor
- Windsurf
- VS Code (GitHub Copilot)