Skip to main content

What is an MCP Server?

An MCP (Model Context Protocol) Server allows you to connect other platforms to Logic’s agents. Since Logic hosts the server, other applications can send requests to Logic’s agents and receive responses, enabling seamless integration across different services. With this, you can write your AI rules once in Logic, and any MCP-compatible tools can use them.

For Example

Imagine you’ve created a Logic agent that validates code against your company’s style guide. With the Logic MCP Server enabled, you could use Claude Code to automatically call this Logic agent whenever you’re writing code. Instead of manually checking your code against the style guide, Claude Code would send your code to the Logic agent and receive feedback on style violations, best practices, and suggested improvements—all based on the rules you’ve defined once in Logic.

Configuring the Logic MCP Server for your Document

MCP servers settings page

How to Enable the Logic MCP Server

Once you’ve published your document, you can enable the Logic MCP Server to handle requests for your document. To enable the Logic MCP Server for your document, follow these steps:
  1. Click your profile icon in the top right corner of the Logic interface.
  2. Select “Organization Settings” from the dropdown menu.
  3. Navigate to the “MCP Servers” tab.
  4. Click the “Create MCP Server” button to set up a new MCP Server for your document.

Choosing What Documents Use the MCP Server

MCP servers select which documents are accessible On this page, you can create and manage MCP Servers for your organization. To create a new MCP Server for your document, click the “Create MCP Server” button and follow the prompts to configure the server settings. You can enable the MCP server for all documents in your organization, or only selected ones.

Configuring MCP Timeouts

Since Logic executions can take time to run (especially for complex documents or workflows), they may exceed the default timeout limits in MCP client tools. If you experience timeout errors when using the Logic MCP Server, you’ll need to increase the timeout values in your client configuration.

Claude Code

To configure timeouts in Claude Code, use the MCP_TIMEOUT environment variable when starting Claude Code:
MCP_TIMEOUT=120000 claude
The MCP_TIMEOUT value is in milliseconds. The example above sets a 2-minute (120,000ms) timeout.
Start with a 2-minute (120,000ms) timeout and adjust based on your typical execution times. For very complex Logic documents, you may need to increase this further.