MCP is currently publicly available for the Momentic local app as of version
2.17.1
Overview
The MCP server provides AI models with access to your Momentic project through a set of specialized tools. These tools allow AI assistants to:- Browse and understand your test structure
- Create new tests with AI assistance
- Edit existing tests using natural language
- Manage test environments and configurations
- Access test and module information
Before you start
Step 1: Enable the MCP server
We support three transport options. New features will target the Streamable HTTP and stdio standard, but SSE remains available for legacy IDEs.- Streamable HTTP (Default)
- Stdio (CLI's mcp command)
- SSE (Legacy)
Streamable HTTP Transport (newer standard): available in any version
Momentic >= 2.17.2
Requires the Momentic app to be running.
Step 2: Set up your MCP client
Make sure you have started the local app then follow the steps for your IDE below.- Cursor
- VS Code (GitHub Copilot)
- Windsurf
Example configuration (used in Cursor as of 2025‑09‑19). This is an example and
may not work universally across VS Code–branched IDEs.Stdio server: Run Momentic through the CLI instead of connecting to the
desktop server URL. This is gated behind the Setup Steps:
The
momentic mcp command requires Momentic 2.42.0 or later.momentic mcp command and is
useful when you want the MCP server to start on-demand or prefer a
command-based setup.- Open Cursor’s command palette (Cmd Shift P)
- Navigate to “View: Open MCP Settings” command
- Add the momentic-desktop MCP server (configuration above)
- Restart the MCP server
Step 3: Agent Rules
Open your IDE’s or CLI’s agent‑rules settings and add one of the following suggested rules to prevent models from directly editing your test or module YAML files. If user approval is required before making changes:.cursorignore). Enable these safeguards where available.
Step 4: Use tools in your IDE
- Verify you have started the Momentic application
- Verify the MCP server appears in your IDE (e.g., Copilot Agent mode → Tools)
- Try a simple action (e.g., list tests) to confirm connectivity
- If tools don’t appear, restart both the IDE and the Momentic desktop server
Security considerations
- Local Only: The MCP server is designed for local development only
- No Authentication: Currently no authentication is required for local access
- Session Management: Sessions are automatically cleaned up on disconnection
- Resource Access: MCP tools have access to your local file system and project data
Example Usage:
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
Best practices
- Start Desktop Server: Always start your Momentic app before connecting MCP
- Project Context: Ensure you’re in the correct project directory
- Prompting: While you will see success with unclear directions of how to edit a test, using step by step descriptions will yield faster test edit times and steps closer to exactly what you are envisioning. We suggest keeping the amount of steps per edit_test tool call under 10.
- Session Management: Allow sessions to clean up properly by disconnecting cleanly
- Tool Safety: All of our tools other than edit test currently cannot do any harm or changes to your project (file creation or read only). Enabling these to auto run is safe. If you use the momentic_edit_test tool be sure you have tracked your changes to the test file it is editing as it will not ask you for permission for each change.
Available Tools
Environment Tools
- momentic_environment_list
List environments defined in the project’s momentic.config.yaml file.Usage: Returns a JSON array of all configured environments with their
settings and configurations.Parameters: NoneExample:
momentic_environment_list - Returns all available test
environmentsModule Tools
- momentic_module_list
- momentic_module_get
- momentic_module_recommend
List all modules in your project.Usage: Returns basic metadata for each module (ID, name, description, and
paths). Use this to discover available modules.Parameters: NoneExample:
momentic_module_list - Returns all project modulesNote: Parameters are not included in this list. Use momentic_module_get to
inspect parameter requirements before inserting modules into a test.Session Tools
- momentic_session_start
- momentic_session_terminate
Start a granular browser session for a specific test.Usage: Creates a session bound to a test and returns session metadata.Parameters:
testId(required): Test ID to targetenvName(optional): Environment override (matches CLI--env)projectConfigPath(optional): Path tomomentic.config.yamlprojectNameFilter(optional): Project name filter for workspace configsheadfulBrowser(optional): Launch a headful browser
momentic_session_start --testId "test-uuid"Test Tools
- momentic_test_list
- momentic_test_get
- momentic_test_create
- momentic_test_edit
List all tests in your project.Usage: Returns comprehensive test information including metadata, labels,
and file paths.Parameters: NoneExample:
momentic_test_list - Returns all project testsTest Session Interaction Tools (Granular)
- momentic_preview_step
- momentic_get_browser_state
- momentic_get_environment_variables
- momentic_run_step
- momentic_test_splice_steps
Execute a step without adding it to the test.Usage: Runs a single step in the current session without modifying the test.Parameters:
sessionId(required): Session ID to usestep(required): Step definition to execute
momentic_preview_step --sessionId "session-uuid" --step { ... }