Enterprise Connectors
Connectors allow your agents to access external data sources and services through natural language conversations. Agent Mesh Enterprise provides multiple connector types for integrating with databases, REST APIs, knowledge bases, and MCP-compliant servers.Overview
Connectors bridge the gap between AI agents and enterprise data:- Unified Access: Single configuration for multiple agents
- Credential Management: Centralized authentication
- Protocol Translation: Automatic conversion between agent requests and external APIs
- Schema Discovery: Automatic tool generation from API specifications
Architecture
Connector Types
SQL Connectors
Query relational databases using natural language: Supported Databases:- MySQL
- PostgreSQL
- MariaDB
- Microsoft SQL Server
- Oracle Database
- Natural language to SQL conversion
- Schema introspection
- Read-only enforcement
- Query result formatting
- Generates SQL:
SELECT product_name, SUM(revenue) as total FROM sales WHERE month = CURRENT_MONTH - 1 GROUP BY product_name ORDER BY total DESC LIMIT 5 - Executes query via connector
- Returns formatted results to user
OpenAPI Connectors
Interact with REST APIs using OpenAPI specifications: Features:- Automatic tool generation from OpenAPI spec
- Multiple authentication methods
- Request/response schema validation
- Configurable headers and parameters
- None (public APIs)
- API Key (header or query parameter)
- HTTP (Basic or Bearer)
- OAuth2/OIDC (client credentials)
- Identifies OpenAPI operation:
POST /v1/invoices - Constructs request with parameters
- Connector handles authentication and HTTP request
- Returns created invoice details
Knowledge Base Connectors
Retrieve context from enterprise documentation: Features:- Vector similarity search
- Semantic retrieval
- Metadata filtering
- Context grounding for LLM responses
- Embeds question as vector
- Searches knowledge base for similar documents
- Retrieves top 5 relevant chunks
- Grounds LLM response in retrieved context
- Cites source documents
MCP Connectors
Communicate with Model Context Protocol servers: Features:- Standard protocol for AI tool access
- Dynamic tool discovery
- Structured data exchange
- Multi-modal support
- Calls MCP server’s
list_directorytool - MCP server executes filesystem operation
- Returns structured file listing
- Agent formats response for user
Creating Connectors
Web UI (Enterprise)
Create connectors through the Agent Mesh Enterprise web interface:-
Navigate to Connectors
-
Select Connector Type
- SQL Database
- OpenAPI/REST API
- Knowledge Base
- MCP Server
-
Configure Connection
- Enter connection details
- Provide credentials
- Test connection
-
Save and Deploy
- Connector becomes available to all agents
- Assign to agents in Agent Builder
Programmatic (YAML)
Define connectors in configuration files:Shared Credential Model
Understanding Shared Access
All agents assigned to a connector use the same credentials:- Cannot restrict one agent to read-only and another to read-write
- Security boundaries exist at external system level
- Agent-level access control requires multiple connectors
Security Best Practices
Least Privilege Credentials
Create dedicated database users with minimal permissions:Multiple Connectors for Different Access Levels
Create separate connectors per access level:Assigning Connectors to Agents
Agent Builder (Web UI)
- Navigate to Agent Builder
- Create or Edit Agent
- Select Connectors
- Choose from available connectors
- Multiple connectors per agent supported
- Deploy Agent
YAML Configuration
Managing Connectors
Editing Connectors
Modify connector configuration:- To all agents using the connector
- After agent redeployment
- May cause temporary disruptions
Deleting Connectors
Restrictions:- Cannot delete if assigned to any agent
- Must undeploy agents first
- Removes from Agent Mesh only (external system unaffected)
- Identify agents using connector
- Undeploy agents or remove connector assignment
- Delete connector
- Clean up external credentials (database users, API keys)
Connector Health Monitoring
Monitor connector status:Access Control (RBAC)
Connector operations require specific capabilities:| Capability | Purpose |
|---|---|
sam:connectors:create | Create new connectors |
sam:connectors:read | View connector configurations |
sam:connectors:update | Modify connector settings |
sam:connectors:delete | Remove connectors |
Troubleshooting
Connection Failures
Symptom: Connector shows “disconnected” status Solutions:-
Verify Network Access
-
Check Credentials
- Verify username/password
- Check API key validity
- Confirm OAuth2 client credentials
-
Review Firewall Rules
- Allow outbound connections to external system
- Check security groups (cloud environments)
Authentication Errors
Symptom: 401/403 errors when using connector Solutions:-
API Key Authentication
- Verify key hasn’t expired
- Check parameter name matches API requirements
- Confirm location (header vs. query parameter)
-
OAuth2 Authentication
-
Database Authentication
Query Failures
Symptom: SQL queries return errors Solutions:-
Check Read-Only Mode
- Verify connector
read_only: true - Ensure no INSERT/UPDATE/DELETE operations
- Verify connector
-
Schema Permissions
-
Table Access
- Check
allowed_schemasconfiguration - Verify table not in
denied_tableslist
- Check
OpenAPI Spec Loading
Symptom: Connector fails to load OpenAPI specification Solutions:-
Validate Spec
-
Check File Access
- Verify S3 bucket has public read access
- Confirm spec file URL is accessible
- Test direct download:
-
Version Compatibility
- Ensure OpenAPI 3.0+ (not Swagger 2.0)
- Convert if needed: https://converter.swagger.io/
Advanced Configuration
Connection Pooling
Optimize database connections:Retry Logic
Handle transient failures:Custom Headers
Add custom headers to API requests:SSL/TLS Configuration
Custom certificate validation:Best Practices
Security
-
Use Read-Only Credentials
- Default to SELECT-only database users
- Create separate connectors for write operations
-
Rotate Credentials Regularly
-
Encrypt Credentials
- Store in secrets manager (AWS Secrets Manager, HashiCorp Vault)
- Use environment variables, not hardcoded values
-
Monitor Access Logs
- Enable database query logging
- Track API usage patterns
- Alert on unusual activity
Performance
-
Connection Pooling
- Use pools for SQL connectors
- Size based on concurrent agent requests
-
Caching
- Cache OpenAPI specs
- Cache knowledge base embeddings
- Implement TTL-based invalidation
-
Timeouts
Reliability
-
Health Checks
- Periodic connection validation
- Automatic reconnection on failure
-
Circuit Breakers
- Fail fast on repeated errors
- Prevent cascade failures
-
Graceful Degradation
- Continue operation if connector unavailable
- Return cached results when possible
Next Steps
Authentication
Configure OAuth2 and RBAC
Security
Secure connectors and credentials