Skip to main content
Glama
dpdanpittman

mcp-server-quint

by dpdanpittman

quint_typecheck

Validate Quint specification type safety by analyzing source code or file paths to detect type errors with precise locations.

Instructions

Type-check a Quint specification. Returns success or type errors with locations. Provide either source code or a file path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoQuint specification source code (.qnt content)
file_pathNoPath to a .qnt file on disk

Implementation Reference

  • The handler for the "quint_typecheck" MCP tool, which executes `runWithSource` with the "typecheck" command.
    server.tool(
      "quint_typecheck",
      "Type-check a Quint specification. Returns success or type errors with locations. Provide either source code or a file path.",
      sourceSchema,
      async ({ source, file_path }) => {
        try {
          const result = await runWithSource(source, file_path, (f) => [
            "typecheck",
            f,
          ]);
          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