Skip to main content
Use this page as the detailed reference for Momentic MCP tools while setting up or iterating from your IDE. For setup instructions, see MCP Setup.

Project Tools

List tests and environments in your project.Usage: Returns JSON with the following shape:
{
  "tests": [
    {
      "id": "test-id",
      "name": "test-name",
      "description": "optional description",
      "fullFilePath": "tests/example.test.yaml",
      "labels": []
    }
  ],
  "environments": []
}
Parameters: NoneExample: momentic_test_environment_list - Returns tests and environments.

Module Tools

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

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 target
  • envName (optional): Environment override (matches CLI --env)
  • projectConfigPath (optional): Path to momentic.config.yaml
  • projectNameFilter (optional): Project name filter for workspace configs
  • headfulBrowser (optional): Launch a headful browser (defaults to true)
Response highlights:
  • sessionId, testId, createdAt, expiresAt, idleTimeoutMs, envName, baseUrl: Session metadata for the started session.
  • viewport: Viewport dimensions in pixels (width and height), or null if unavailable.
Example: momentic_session_start --testId "test-uuid"

Test Tools

Get a single fully loaded test by ID, exact name, or file path.Usage: Retrieves complete test definition with resolved configurations.Parameters:
  • id (optional): Test ID
  • name (optional): Exact test name
  • path (optional): File path
Note: Exactly one selector must be provided.Example: momentic_test_get --path "tests/login.test.yaml" - Returns the login test

Test Session Interaction Tools (Granular)

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 use
  • step (required): Step definition to execute
Response:
  • Returns tool content parts directly:
    • Markdown text sections such as ### Successful Result or ### Error
    • Screenshot image content part (base64)
    • ### Screenshot Path text section with a file path handle
    • ### Environment Variables text section with a file path to saved JSON
Example: momentic_preview_step --sessionId "session-uuid" --step { ... }