Skip to main content
Choose one documentation source for your agent. The Legnext Skill is the recommended path; the docs MCP server is the live alternative. You do not need both.

1. Choose a documentation source

Legnext Skill — recommended

Install the integration playbook in Claude Code, Cursor, Codex, and other skill-compatible agents.

Docs MCP server

Give any MCP-capable client live documentation search without installing a project skill.

Use the Legnext Skill

Run this from your project:
The skill teaches the task lifecycle, retries, output persistence, child tasks, credits, and error handling.

Use the docs MCP server

Add this URL as a Streamable HTTP MCP server named legnext-docs:
For Claude Code:
The docs server does not require a Legnext API key. If your agent supports neither Skills nor MCP, tell it to fetch llms-full.txt.

2. Add your API key

Set LEGNEXT_API_KEY in the server-side environment of your project. Never paste the key into the agent conversation, browser code, or a committed file.

3. Paste this prompt

4. Verify the result

The finished integration should:
  • Keep the API key at a server boundary
  • Persist the first returned job_id instead of resubmitting uncertain requests
  • Continue through all non-terminal states and stop at completed or failed
  • Keep the unauthenticated Get Task capability URL private
  • Copy completed output to durable storage
  • Handle moderation, balance, timeout, and provider failures
  • Include a focused test or repeatable verification
Prefer to write the integration yourself? Follow First API request, then read Task lifecycle.