External MCP Tools for Chat Agents
Connect your Chat agents (Chat Apps and Chat Widgets) to external MCP servers to access custom tools and integrations beyond Vectorize's built-in capabilities. This feature enables Chat agents to use tools from any MCP-compatible server alongside your Vectorize retrieval tools.
This feature is only available for Chat agents (Chat Apps and Chat Widgets).
Overview
External MCP tools allow your Chat agents to:
- Connect to third-party MCP servers via HTTP/HTTPS
- Use custom tools for specialized tasks (e.g., Linear issue creation, GitHub operations)
- Authenticate using various methods (Bearer tokens, OAuth 2.1, custom headers)
- Combine external tools with Vectorize retrieval for comprehensive agent capabilities
How It Works
When you configure an external MCP server:
- Discovery - Vectorize connects to the MCP server and discovers available tools
- Integration - Tools are made available to your agent alongside Vectorize tools
- Execution - When the agent needs a tool, Vectorize proxies the request to the external server
- Results - Responses are returned to the agent for processing
Adding External MCP Servers
Navigate to Tools Settings
- Open your Chat agent's admin panel (Chat App or Widget)
- Click Tools & Functions in the sidebar
- You'll see sections for Vectorize tools and MCP servers
Add a New MCP Server
Click Add MCP Server to configure a new external server:
Basic Configuration
- Server Name: A descriptive name for this server
- URL: The HTTPS endpoint of the MCP server
- Must use HTTPS for security
- Example:
https://api.example.com/mcp
Authentication Options
Choose the authentication method your MCP server requires:
1. No Authentication
- For public MCP servers
- No additional configuration needed
2. Bearer Token
- Provide a static API key or token
- Token is stored securely in Parameter Store
- Sent as
Authorization: Bearer YOUR_TOKEN
3. OAuth 2.1 (Dynamic Client Registration)
- For servers supporting OAuth 2.1 with dynamic clients
- Provide the authorization server URL
- Vectorize handles the OAuth flow automatically
- Users authenticate once per organization
4. Custom Headers
- For servers requiring custom authentication headers
- Add any headers needed (e.g.,
X-API-Key
,X-Client-ID
) - Values are stored securely
Test Connection
After configuration:
- Click Test Connection to verify setup
- Vectorize will attempt to connect and discover tools
- If successful, available tools will be displayed
Enable Tools
Once connected:
- Review the discovered tools
- Toggle on/off individual tools for your agent
- Tools are immediately available to the agent
OAuth 2.1 Authentication Flow
For servers supporting OAuth 2.1 with dynamic client registration:
Initial Setup
- Enter the OAuth authorization server URL
- Click Connect with OAuth
- Vectorize registers as a dynamic client
- You're redirected to authenticate
Authorization Process
- Dynamic Registration - Vectorize registers with the auth server
- User Consent - You authorize Vectorize to access the MCP server
- Token Storage - Tokens are stored per organization
- Automatic Refresh - Tokens are refreshed as needed
Redirect Handling
After OAuth authorization:
- You're redirected back to the Tools settings page
- The connection status is updated
- Tools are discovered automatically
Using External Tools
In Chat Agents
External tools work seamlessly in chat interfaces:
- The LLM sees all available tools (Vectorize + external)
- Tools are invoked based on user queries
- Results are incorporated into responses
Tool Execution Flow
- User Query - "Create a Linear issue for the bug in the login system"
- Tool Selection - Agent identifies the
create-linear-issue
tool - Parameter Extraction - Agent extracts title, description from context
- Execution - Vectorize proxies the request to the Linear MCP server
- Response - Issue details returned and shown to user
Managing MCP Servers
View Server Status
In the Tools settings:
- Active - Server is connected and tools are available
- Inactive - Server is configured but disabled
- Error - Connection or authentication issues
Update Configuration
To modify a server:
- Click the server card
- Update URL, authentication, or settings
- Test connection to verify changes
Remove a Server
To delete a server:
- Click the delete icon on the server card
- Confirm removal
- All associated tools are removed from the agent
Security Considerations
HTTPS Required
- All external MCP servers must use HTTPS
- HTTP endpoints are not supported
Token Storage
- Tokens and customer headers are encrypted at rest
- Access is scoped to your organization
Example: Linear Integration
Here's how to connect the Linear MCP server:
-
Add MCP Server
- Name: "Linear Project Management"
- URL:
https://linear-mcp.example.com/mcp
- Auth: OAuth 2.1
-
Authenticate
- Click "Connect with OAuth"
- Authorize access to your Linear workspace
- Return to Vectorize
-
Enable Tools
create-issue
- Create new Linear issuesupdate-issue
- Modify existing issuessearch-issues
- Find issues by criteria
-
Use in Agent
User: "Create a high priority bug for the login timeout issue"
Agent: "I'll create a Linear issue for this bug."
[Uses create-issue tool]
Agent: "Created issue LIN-1234: Login timeout issue (High priority)"
What's Next?
- Creating Agent Tools - Build custom Vectorize tools
- MCP Protocol Overview - Understand MCP concepts
- Chat Agent Setup - Configure chat interfaces