Multimeter

v1.42.4
io.github.mshobeyri/multimeter Checked 9 hours ago Published 2 months ago

Scaffold, validate, format, and run YAML .mmt API tests.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

read_documentation Read Multimeter docs

Call when you need Multimeter YAML syntax rules. Defaults to pack "min" (small). Use pack "full" only for rare/advanced syntax. For new tests from an API, prefer scaffold_test over loading docs. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.

ParameterTypeDescription
packstringmin (default, low token) or full
topicstringDocumentation topic. Use workflow for MCP-first edit/run steps. Defaults to overview.

list_examples List Multimeter examples

Call when you need example .mmt structure before creating or modifying a file. Prefer this over searching the repo or guessing YAML layout. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.

ParameterTypeDescription
categorystringFilter by category such as basic or intermediate
includeContentbooleanInclude full example file contents
maxItemsintegerMaximum number of examples to return
typestringFilter by document type such as test, api, or loadtest

discover_api Discover workspace APIs

Call when listing APIs or inspecting one API before scaffolding a test. For a single API, prefer api_card. For new tests, prefer scaffold_test once apiPath is known. selectedApi omits full file content unless includeContent is true. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.

ParameterTypeDescription
workspaceRoot *stringWorkspace root directory
apiPathstringOptional API .mmt file path relative to workspaceRoot
includeContentbooleanInclude full API file content (default false)

api_card Compact API card

Return a small API summary (method, url, inputs, outputs, suggested paths) without dumping the full file. Prefer this over reading the whole .mmt or OpenAPI when generating or planning a test. Next step for a new test: scaffold_test. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.

ParameterTypeDescription
apiPath *stringAPI .mmt file path relative to workspaceRoot or absolute
workspaceRoot *stringWorkspace root directory

scaffold_test Scaffold test from API

REQUIRED first step when generating a new Multimeter test from an existing API .mmt. Returns valid smoke (or example) test YAML, suggested path, import alias, and a compact apiCard. Write the yaml, apply only minimal edits, then validate. Do not invent a blank test from scratch. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.

ParameterTypeDescription
apiPath *stringAPI .mmt file path relative to workspaceRoot or absolute
workspaceRoot *stringWorkspace root directory
aliasstringOptional import alias override
outPathstringOptional suggested output test path (relative)
strategystringsmoke (default) or example inputs

suggest_assertions Suggest assert/expect patches

Suggest compact expect/assert YAML patches from API outputs and/or a JSON response body. Use after a run or when tightening a scaffolded smoke test — patch only, do not rewrite the file. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.

ParameterTypeDescription
apiPathstringAPI .mmt to read outputs from
bodyParsed JSON response body
bodyFilestringPath to a JSON response file
maxFieldsintegerMax body fields to suggest
statusnumberHTTP status to expect
stepIdstringCall step id for ${id.field} asserts
stylestringPatch style (default both)
workspaceRootstringWorkspace root (required with apiPath or bodyFile)

validate Validate .mmt file

REQUIRED after every create or modify operation on a .mmt file. Call immediately after editing a file and before telling the user the task is done. Returns structured errors and fix suggestions. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.

ParameterTypeDescription
file *stringPath to the .mmt file relative to workspaceRoot or absolute
expectedTypestringOptional expected document type
workspaceRootstringWorkspace root for relative paths

format Format .mmt file

Format a Multimeter file using canonical field ordering and style rules. Call after validate passes when normalizing generated or edited YAML. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.

ParameterTypeDescription
file *stringPath to the .mmt file
workspaceRootstringWorkspace root for relative paths

run Run .mmt file

Execute a Multimeter test or API file and return structured pass/fail output, logs, and errors. ONLY supported way to run .mmt files from Copilot — call this directly when the user asks to run or execute. Do NOT use testlight CLI, npx, npm install, shell scripts, or node dist/mcp/server.js.

ParameterTypeDescription
file *stringPath to the .mmt file to run
envobject
inputsobject
quietbooleanReduce run logs in the response
workspaceRootstringWorkspace root for relative paths