Skip to content

MCP Server

Laritor provides a Model Context Protocol (MCP) server that lets AI assistants retrieve Laritor data and help investigate and fix exceptions from your local project.

Laritor uses OAuth to securely connect your AI assistant to your account. When you first connect, your AI assistant opens a Laritor authorization page. Sign in if needed, then authorize the assistant to access your Laritor account.

If your account is in the US (NYC), run:

Terminal window
claude mcp add --transport http laritor https://nyc.laritor.com/mcp

If your account is in the EU (Amsterdam), run:

Terminal window
claude mcp add --transport http laritor https://ams.laritor.com/mcp

Then run /mcp in a Claude Code session to complete authentication.

Add the Laritor debugging policy below to CLAUDE.md in your project root.

Add the following Markdown to the instruction file for your AI agent. It ensures the agent consults Laritor production telemetry early when investigating runtime problems.

## Laritor debugging policy
This repository is connected to Laritor through MCP.
Whenever the user asks to debug, diagnose, investigate, or fix any of the following:
- exceptions
- bugs
- runtime errors
- HTTP 500 errors
- crashes
- failed requests
- unexpected application behavior
- production issues
you MUST consult Laritor early in the investigation, even if the user does not explicitly mention Laritor.
Required workflow:
1. Read `.laritor.json` to determine the Laritor application mapped to this repository.
2. Call the Laritor exception search tool for recent relevant exceptions.
3. If a relevant exception exists, retrieve its detailed occurrence information.
4. Carefully inspect the Laritor execution timeline, including queries, logs, cache operations, outbound requests, jobs, mails, notifications, and other recorded events.
5. Treat the ordered event timeline as primary debugging evidence because it shows what the application executed before and during the failure.
6. Correlate Laritor production evidence with the local source code before proposing or implementing a fix.
7. Do not rely solely on local logs, git history, source inspection, or tests when Laritor production telemetry is available.
Do not wait for the user to say "use Laritor".
Skip Laritor only when:
- the user explicitly asks you not to use Laritor, or
- the task cannot involve application runtime behavior, such as formatting code, renaming a variable, or editing documentation.

The first time you use Laritor MCP in a local project, your AI assistant prompts you to select the Laritor application that belongs to the project. Once selected, it creates a .laritor.json file in the project root.

Laritor uses this file for later prompts, so you do not need to select the application each time.

Ask your AI assistant:

“Help me understand why the “trying to access array offset on null” exception is occurring.”

Your assistant can retrieve the relevant Laritor data and help you analyze the exception from your local project.

Ask your AI assistant:

“What are the most recent exceptions in Laritor in the past 2 days?”

Ask your AI assistant:

“Fix the most recent exception in Laritor.”

Your assistant can use the connected Laritor data to investigate the problem and help you implement a fix.

  • Authentication: Laritor MCP uses OAuth to securely connect to your account.
  • Authorization: The MCP server can access only the applications and data for teams you belong to.
  • Read-only access: The MCP server has read-only access to your Laritor account.