SuperAPI AI Directory

mcp

Search @imqueue docs, scaffold typed services and clients, access the CLI and manage your service fleet.

Open website

About this tool

Purpose

@imqueue/mcp is a Model Context Protocol (MCP) server for @imqueue. Its goal is to enable AI coding agents (Claude Code, ChatGPT, Codex, Cursor, VS Code, JetBrains, etc.) to search the official documentation, generate typed service and client scaffolding, and directly drive the imq CLI when writing @imqueue code, so they produce correct code that follows @imqueue conventions instead of relying on the model's guesses.

Two forms

This server provides two different usage surfaces:

  • Local server (npx -y @imqueue/mcp): includes all 14 tools.
  • Hosted server (mcp.imqueue.org/mcp): provides only 7 tools, all read-only.

Main capabilities

Read-only tools (six in total)

These tools only fetch or generate text and do not write anything. They all declare an MCP outputSchema and return structuredContent in addition to human-readable markdown, so clients can consume the results as data—for example, take results[0].url from search_docs and pass it to get_doc, or write scaffold_service's files[] directly to disk—without having to parse prose and code fences. For the scaffolding tools and directories, the markdown is rendered from the same structure, so the two cannot diverge.

get_doc's schema intentionally contains only metadata. The schema requires the server to send structuredContent, but structuredContent does not have to repeat the content in content: it describes the structured part of the answer. Therefore the page content is transmitted only once in content, and the schema carries url (the mirror address actually fetched, which may not be the URL you passed in), mimeType, bytes (which the caller can use to judge before reading), and truncated. Putting the markdown in there too would double the largest response the server can produce—measured on /api/rpc/latest/ as 16.6 kB of text plus 16.6 kB of structure. The absence of a body field is self-describing: when callers read the schema and do not see a content field, they know the page is in content, and all clients look there anyway.

CLI support tools (local only)

These tools drive the real CLI, so they act on the machine where the server is located. They exist only in local installations; the hosted server does not register them. When called, stdin is closed and a timeout is set, so prompts missing flags fail quickly instead of hanging. If imq is not installed, you can run cli_install or use the offline scaffold_* tools. The CLI support tools have no schema: they return imq's stdout, whose shape is not worth committing to.

How to use

Install and run

Node.js ≥ 18 is required. Users need no build step and can run it directly from npm:

npx -y @imqueue/mcp

ChatGPT and Codex

@imqueue is listed in OpenAI's plugin directory, shared by ChatGPT and Codex. Open the Plugins tab in ChatGPT to install; in the Codex CLI, run /plugins. No config file, no Node. This route installs the hosted server, so there are only seven read-only tools and no CLI bridge. Codex can also run a local server at the same time—the MCP server lives under mcp_servers in ~/.codex/config.toml, using TOML rather than the usual JSON. ChatGPT connects to MCP servers only over HTTP, so there is no local option, and the plugin is all it has.

Other clients (Cursor, Claude Desktop, JetBrains, Windsurf, Zed, etc.)

Add it to your MCP configuration (.cursor/mcp.json, claude_desktop_config.json, etc.). VS Code and Visual Studio use a top-level servers key with "type": "stdio", not mcpServers. See imqueue.org/mcp/installation for the exact configuration paths and snippets for each client.

Hosted server (no installation)

If your client supports remote MCP servers and you only need docs and scaffolding, you can point it at the hosted endpoint:

mcp.imqueue.org/mcp

It provides seven tools, all read-only: the six above plus local_install_guide, which returns the setup steps for a local installation. This is also what the OpenAI plugin directory installs for ChatGPT and Codex—the same endpoint, the same limits, packaged as a one-click install. It does not provide the CLI-backed tools, and that is intentional: those tools act on your machine—your project files, running services, CLI configuration—and a server running at the Cloudflare edge cannot reach any of that. Advertising them there would mean listing tools that can never do what their names say, so in remote mode they are simply not registered. If you need them, install locally.

Data sources and security

Docs are fetched live from imqueue.org's machine-readable sources, so the server never carries stale content: /llms.txt for the curated page index, each page's …/index.md mirror for the body, /search-index.json, /search-text.json, and /search-sections.json for the search corpus, and /status.json for package versions and licenses. imqueue.com's /llms.txt and similar sources are also read for commercial pages. Nothing outside these two hosts is ever fetched—the allowlist is enforced in src/docs.ts, and any other address is rejected.

Versions and licenses come from the last source rather than being compiled in, and that is intentional: @imqueue releases far more often than this server, so a built-in version would be stale within days and would be wrong with complete confidence. npmjs.com has bot detection for unattended scraping, so imqueue.org reads the registry at build time and republishes the answers somewhere anything can read them.

Testing

Unit tests cover the parts that do not need the network: the ranker on a fixed corpus, the exact identifiers emitted by the scaffolding tools, URL parsing, telemetry, and the HTTP surface of the hosted Worker—worker/worker.ts is an ordinary fetch handler, so you call it with a Request and assert on the Response, with no wrangler and no deployment. The hosted surface has its own checks because it is a different contract: it asserts the exact seven-tool list, and that every one of them is read-only—an assertion that prevents futureThe refactor quietly re-exposes the CLI tool on hosted endpoints.

Example use cases

User: "Create an @imqueue user service with a getUser(id) method." The agent calls scaffold_service({ name: "user", methods: [{ name: "getUser", params: [{ name: "id", type: "number" }], returns: "User" }] }), gets a ready-to-paste UserService + bootstrap, then completes the wiring via search_docs("run a service") / get_doc(...).

License

GPL-3.0—free and open source. If you need to use @imqueue/mcp in a closed-source product, or need commercial support, a commercial license is available; see imqueue.com for details. Full documentation: imqueue.org/mcp. For the design and registry distribution plan, see SPEC.md.