Using MCP Tools

The Model Context Protocol (MCP) allows you to connect external tools and services using a standardized protocol, enabling you to integrate APIs and services directly into your workflows. With MCP, you can extend Seeyu Agent Studio's capabilities by adding custom integrations that work seamlessly with your agents and workflows.

What is MCP?

MCP is an open standard that enables AI assistants to securely connect to external data sources and tools. It provides a standardized way to:

  • Connect to databases, APIs, and file systems
  • Access real-time data from external services
  • Execute custom tools and scripts
  • Maintain secure, controlled access to external resources

Adding an MCP Server as a Tool

MCP servers provide collections of tools that your agents can use.

To add one:

  1. Navigate to Settings → MCP Tools
  1. Click Add to open the configuration modal
  2. Enter a Server Name and Server URL
  3. Add any required Headers (e.g. API keys)
  4. Click Add MCP to save

You can also configure MCP servers directly from the toolbar in an Agent block for quick setup.

Server Configuration Options

FieldDescription
NameDisplay name for the server
URLThe MCP server endpoint
TransportCurrently supports streamable-http
HeadersKey-value pairs for authentication or custom headers
TimeoutConnection timeout in milliseconds (default: 30,000)

Environment Variables in Configuration

Server URLs and headers support environment variable substitution using {{VAR_NAME}} syntax. This keeps sensitive values like API keys out of the server configuration.

URL: https://api.example.com/mcp
Authorization: Bearer {{MCP_API_TOKEN}}

When you type {{ in the URL or header fields, a dropdown appears showing available workspace environment variables.

When a saved secret is successfully substituted this way, exact occurrences of its value are masked in stored MCP tool-call traces. The real URL or header value still reaches the MCP server unchanged. See Execution log protection for the exact scope and limitations.

Testing and Validation

Click Test Connection before saving to verify the server is reachable and discover available tools. The test response shows the number of tools found and the protocol version.

After saving, each server displays its available tools with parameter names, types, and required flags. If a server's tools change (e.g., after a server update), click Refresh to fetch the latest schemas. This automatically updates any agent blocks using those tools.

Tool validation badges appear on servers with issues — for example, if a tool was removed from the server but is still referenced in a workflow. Click the badge to see which workflows are affected.

Domain Allowlisting

Self-hosted deployments can restrict which MCP server domains are allowed by setting the ALLOWED_MCP_DOMAINS environment variable (comma-separated list). When set, only servers on approved domains can be added. When unset, all domains are allowed.

This governs which domains may be used. It is separate from where those domains are allowed to resolve: an MCP server on a private address is reached by naming it in EGRESS_ALLOWED_HOSTS or EGRESS_ALLOWED_IP_RANGES, described in Security. Both checks apply.

The allowlist covers the server URL itself. If the server requires OAuth, any endpoint its metadata names on a different origin than the server you configured is treated as content rather than as configuration, so that one has to be publicly routable. Endpoints on the server's own origin keep the server's reachability.

Refresh Tools

To auto-refresh an MCP tool already in use by an agent, go to Settings → MCP Tools, open the server's details, and click Refresh. This fetches the latest tool schemas and automatically updates any agent blocks using those tools with the new parameter definitions.

Using MCP Tools in Agents

Once MCP servers are configured, their tools become available within your agent blocks:

  1. Open an Agent block
  2. In the Tools section, click Add tool…
  3. Under MCP Servers, click a server to see its tools
  1. Select individual tools, or choose Configure operations access for a dynamic server attachment
  2. The agent can now access these tools during execution

If you haven't configured a server yet, click Add MCP Server at the top of the dropdown to open the setup modal without leaving the block.

Standalone MCP Block

Use the MCP block to discover operations or run one operation with explicit inputs:

Choose an Action:

  • List operations discovers authorized operation names, descriptions, and input schemas without executing provider operations. Filter by name or description, set a page size from 1 to 100, and pass nextCursor into the next request while hasMore is true. An authorized list can be empty.
  • Run operation executes one exact operation name. Configured operations keep their generated argument fields. For an operation name resolved at runtime, supply a JSON arguments object; Studio validates it against the operation's discovered schema before execution.

MCP Server takes one shared-server ID or managed-connection ID. Studio resolves a managed connection's parent server internally and verifies workspace and credential access. Both actions accept the same ID; List operations returns that ID as serverId, alongside the discovered operations and pagination metadata.

The standalone block's Basic fields select a configured connection and discovered operation. Advanced fields accept literal IDs/names or upstream references. A runtime server reference requires JSON arguments. Listing hides the operation and argument fields.

Operations access

The MCP Server (Advanced) Agent attachment takes a server/connection ID or upstream reference in a plain input. Its Tool IDs field accepts exact MCP tool names, such as search_docs, entered directly. These are the names returned by List operations, without a Studio server prefix. Neither field uses a server or operation catalog picker.

Agent attachments have three access modes:

ModeBehavior
Only selectedAllows only selected exact operation names. An empty selection allows nothing. Newly discovered names stay excluded.
All except selectedDenies selected exact names. An empty selection allows everything otherwise permitted. Denied names stay saved if they temporarily disappear.
All permittedAllows every operation available to the authorized credential.

New restricted configurations start with an empty explicit selection. Existing saved workflows retain their prior access through normalization, while current organization and credential authorization still apply.

Operation restrictions are saved in workflow state on the Agent attachment. Tool IDs are literal configuration, not upstream references or model arguments. An operation must be available to the resolved, authorized connection and permitted by the saved restriction. The standalone block runs its explicitly specified operation and has no separate access policy.

Discovery filters the tools exposed to the Agent. Execution checks the actual server, connection, and saved restriction again before calling the provider. Missing or forbidden operations, unverifiable schemas, malformed arguments, and incorrect connection scopes fail the call. An Agent attachment with no permitted operations fails clearly.

Policies match exact, case-sensitive MCP tool names on whichever authorized connection resolves at runtime. They do not inspect operation arguments: allowing a generic execute_sql operation does not limit which SQL it can execute.

When to Use MCP Tool vs Agent

FeatureAgent with MCP toolsMCP Tool block
ExecutionAI decides which tools to callDeterministic — runs the tool you pick
ParametersAI chooses at runtimeYou set them explicitly
Best forDynamic, conversational flowsStructured, repeatable steps
ReasoningHandles complex multi-step logicOne tool, one call

Permission Requirements

MCP functionality requires specific workspace permissions:

ActionRequired Permission
Create or update MCP serversWrite or Admin
Delete MCP serversAdmin
Use MCP tools in agentsWrite or Admin
View available MCP toolsRead, Write, or Admin
Execute MCP Tool blocksRead, Write, or Admin

Common Use Cases

Database Integration

Connect to databases to query, insert, or update data within your workflows.

API Integrations

Access external APIs and web services that don't have built-in Seeyu Agent Studio integrations.

File System Access

Read, write, and manipulate files on local or remote file systems.

Custom Business Logic

Execute custom scripts or tools specific to your organization's needs.

Real-time Data Access

Fetch live data from external systems during workflow execution.

Security Considerations

  • MCP servers run with the permissions of the user who configured them
  • Always verify MCP server sources before installation
  • Use environment variables for sensitive configuration data
  • Review MCP server capabilities before granting access to agents

Troubleshooting

MCP Server Not Appearing

  • Verify the server configuration is correct
  • Check that you have the required permissions
  • Ensure the MCP server is running and accessible

Tool Execution Failures

  • Verify tool parameters are correctly formatted
  • Check MCP server logs for error messages
  • Ensure required authentication is configured

Permission Errors

  • Confirm your workspace permission level
  • Check if the MCP server requires additional authentication
  • Verify the server is properly configured for your workspace

Common Questions

MCP servers are configured per workspace. Each workspace maintains its own set of MCP server connections. If you need the same MCP server in multiple workspaces, you need to configure it separately in each workspace's settings.
Yes. On Enterprise-entitled workspaces, any workspace admin can create a permission group that disables MCP tools for its members using the disableMcpTools option. When this is enabled, affected users will not be able to add or use MCP tools in workflows that belong to that workspace.
If the MCP server is unreachable during execution, the tool call will fail and return an error. In an Agent block, the AI may attempt to handle the failure gracefully. In a standalone MCP Tool block, the workflow step will fail. Check MCP server logs and verify the server is running and accessible to troubleshoot connectivity issues.