Skip to main content
Glama
dpdanpittman

mcp-server-quint

by dpdanpittman

quint_test

Execute named test definitions from Quint specifications to verify formal models. Returns pass/fail results with detailed failure information for each test.

Instructions

Run named test definitions (run statements) from a Quint spec. Returns pass/fail for each test with failure details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoQuint specification source code (.qnt content)
file_pathNoPath to a .qnt file on disk
matchNoRegex to filter test names (e.g. "transfer" to run only tests matching "transfer")

Implementation Reference

  • Registration and handler implementation for the quint_test tool.
    server.tool(
      "quint_test",
      "Run named test definitions (run statements) from a Quint spec. Returns pass/fail for each test with failure details.",
      {
        ...sourceSchema,
        match: z
          .string()
          .optional()
          .describe(
            'Regex to filter test names (e.g. "transfer" to run only tests matching "transfer")',
          ),
      },
      async ({ source, file_path, match }) => {
        try {
          const result = await runWithSource(source, file_path, (f) => {
            const args = ["test"];
            if (match) args.push(`--match=${match}`);
            args.push(f);
            return args;
          });
          return formatResult(result);
        } catch (err) {
          return {
            content: [{ type: "text", text: `Error: ${err.message}` }],
            isError: true,
          };
        }
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dpdanpittman/mcp-server-quint'

If you have feedback or need assistance with the MCP directory API, please join our Discord server