Labsco
singularitybridge logo

MCP AI Agent Server

from singularitybridge

A server that bridges Cline to an AI agent system, enabling seamless interaction with AI agents through the Model Context Protocol.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

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.

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:

"Can you use send_message to say 'hello'?"

get_session

Get or create a session.

Parameters:

  • None

Example:

"Get the current session."

clear_session

Clear the current session and start a new one.

Parameters:

  • None

Example:

"Please clear the session."

get_assistants

Get a list of available assistants.

Parameters:

  • None

Example:

"List the available assistants."

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:

"Change the assistant for the current session to 'assistant-2'."

Environment Variables

VariableDescriptionRequiredDefault
AI_AGENT_API_KEYAPI key for authenticationYes-
AI_AGENT_BASE_URLCustom API endpoint for the AI agent systemNohttp://localhost:3000

Development

Build from source

git clone https://github.com/avi/mcp-ai-agent-server.git
cd mcp-ai-agent-server
npm install
npm run build

Testing locally

# Using MCP Inspector
npx @modelcontextprotocol/inspector ./build/index.js

# Manual testing
AI_AGENT_API_KEY=test-key node ./build/index.js