Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP AI Agent Serversend a message asking the AI agent to summarize today's news"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP AI Agent Server
An MCP server that bridges Cline to an AI agent system, allowing for seamless interaction with AI agents through the Model Context Protocol.
Features
🚀 Send Messages: Send messages to AI agents within a session.
💡 Session Management: Clear sessions and start new ones.
🔧 Assistant Management: Get a list of available assistants and change the assistant for a session.
Quick Start
Install via npm (Recommended)
Install via npx (No installation required)
Configuration
For Cline
Add to your Cline MCP settings file:
Location:
macOS:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonWindows:
%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonLinux:
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Configuration:
Available Tools
send_message
Send a message in a session with optional attachments.
Parameters:
messageContent(required): The message content to send.attachments(optional): An array of file attachments.
Example:
get_session
Get or create a session.
Parameters:
None
Example:
clear_session
Clear the current session and start a new one.
Parameters:
None
Example:
get_assistants
Get a list of available assistants.
Parameters:
None
Example:
change_assistant
Change the assistant for a session.
Parameters:
sessionId(required): The session ID to update.newAssistantId(required): The ID of the new assistant.
Example:
Environment Variables
Variable | Description | Required | Default |
| API key for authentication | Yes | - |
| Custom API endpoint for the AI agent system | No |
|
Troubleshooting
Operation Timed Out
If you encounter an "Operation timed out" error, it means the request to the AI agent service is taking longer than the server's default internal timeout. You can resolve this by increasing the timeout value in your Cline MCP settings:
Development
Build from source
Testing locally
License
MIT - See LICENSE for details.
Acknowledgments
Built with the Model Context Protocol SDK