# `mix quiddity.mcp`
[🔗](https://github.com/d-led/ex.quiddity/blob/main/lib/mix/tasks/quiddity.mcp.ex#L1)

Runs the Model Context Protocol server: one JSON-RPC message per line on
stdin, one answer per line on stdout, until stdin closes.

This is what an MCP client launches, so it says nothing on stdout that is not
a protocol message — a stray `IO.puts` here is a message the client cannot
parse. Anything worth saying goes to stderr.

    # .mcp.json / mcp.json, in a project that depends on ex_quiddity
    {"mcpServers": {"quiddity": {"command": "mix", "args": ["quiddity.mcp"]}}}

The tools are `Quiddity.Mcp.Tools`; what the server is for is in `Quiddity.Mcp`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
