Skip to content

AI Integration (MCP)

TongueToQuill exposes a Model Context Protocol (MCP) endpoint. Any MCP-aware AI client — Claude, OpenAI clients, custom agents — can use it to produce a TongueToQuill document from natural language and return a link the user can open.

The endpoint takes no API key. Each document is bound to your account afterward by a short claim handshake (account pairing) — you open a link, sign in, and relay a six-digit device code. See Account Pairing.

What it can do

  • Generate USAF / USSF memorandums and other supported document types from a description.
  • Build from a specific published template when you give it the template's short code.
  • Revise the draft it just made, on request, before you save it.
  • Retrieve the format schema for a Quill so the AI can produce valid frontmatter.
  • List the Quills available on the current deployment.

What it can't do (today)

  • Read or edit documents already saved in your library.
  • Browse or search the template gallery, or use your starred templates (it can load a specific template only from a short code you give it).

Each conversation produces one draft the AI can revise; once you save it, further editing happens in the web app.

Setup (Claude)

  1. Open ClaudeSettingsConnectors.
  2. Click Add Connector.
  3. Enter the URL: https://tonguetoquill.app/mcp.
  4. Save.

Once connected, Claude can call the document tools — list_quills, get_template, get_specs, create_document, claim_document, and update_document. For how a document is bound to your account, see Account Pairing.

If your organization runs its own TongueToQuill deployment, replace the host with your own (e.g., https://airmark.example.mil/mcp). The endpoint is only available when MCP is enabled on the deployment.

Setup (other clients)

Point any MCP client SDK that speaks Streamable HTTP at https://<your-host>/mcp. SSE is not used; the call sequence and claim handshake match the Claude setup above.

The standard call sequence:

  1. list_quills — discover which document types this deployment supports.
  2. get_specs — retrieve the format rules and field blueprint for the chosen Quill.
  3. Compose markdown that conforms to the blueprint.
  4. create_document — submit the markdown. Receive a claim token and a claim link.
  5. Hand the user the link. Ask them to open it, sign in, and send back the six-digit device code it shows.
  6. claim_document — submit the claim token and the device code to bind the document. It's now theirs to edit, fork, or export.

Starting from a template? If the user gives you a template short code (from the gallery's Copy for AI chat action), call get_template first, then get_specs for the format it returns and continue from step 3.

To revise after the claim, call get_specs then update_document with the same claim token — no new link or code needed.

For advice on what to put in the prompt that drives this sequence, see Effective Prompting.

Example

User prompt to Claude:

Draft a memo to 20 FW/CC about the upcoming safety inspection on 14 May. From 20 OG/CC. Mention mandatory attendance for all flight commanders. Sign it Lt Col Smith, Commander.

Claude calls get_specs for usaf_memo, composes the markdown, and calls create_document. It hands you the claim link and asks for the code, then calls claim_document to bind it.

You open the link, sign in, and enter the six-digit device code into the chat. The claimed memo lands in your library — review, edit, export as PDF.

When to use this vs. the editor directly

Use the editor when Use the MCP server when
You know exactly what you want to write You want to dictate a memo conversationally
You're starting from a template You don't remember which template you need
The document is sensitive enough you don't want it touching a third-party AI You're happy for an AI to draft an initial version
You need to attach files, indorsements, or set specific fields the AI doesn't know You have a routine memo with a clear, stateable purpose

Whatever the AI generates lands in the editor. You always get the final review.

Next