
cline mcp tools
为 Cline Chat Reader 提供 VS Code 扩展对话支持的 MCP 服务器。
Repository Info
About This Server
为 Cline Chat Reader 提供 VS Code 扩展对话支持的 MCP 服务器。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Cline Chat Reader MCP Server
This is the MCP server for Cline Chat Reader that provides access to VS Code extension conversations for Claude Desktop.
Features
The MCP server implements four essential tools with fixed message limits:
- read_last_messages - Retrieve 20 most recent conversation messages
- read_last_40_messages - Retrieve 40 most recent conversation messages
- get_active_task - Get active conversations
- send_external_advice - Send notifications between agents
Installation
- Clone the repository
- Install dependencies:
npm install - Build the TypeScript code:
npx tsc --project tsconfig.clean.json - Make the launcher script executable:
chmod +x run-mcp-server.js
Configuration
The MCP server needs to be added to the Claude Desktop configuration file. Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"cline-chat-reader": {
"command": "node",
"args": ["/path/to/run-mcp-server.js"],
"disabled": false,
"autoApprove": []
}
}
}
Replace /path/to/run-mcp-server.js with the absolute path to the run script.
Usage
To run the MCP server:
./run-mcp-server.js
Tools
read_last_messages
Retrieves the last 20 messages from a conversation. If no task_id is provided, uses the active conversation.
Parameters:
task_id(optional): Task ID (timestamp) of the conversation. If not provided, uses the active conversation. Special values: "ACTIVE_A" or "ACTIVE_B" to explicitly request active tasks.
read_last_40_messages
Retrieves the last 40 messages from a conversation for more context. If no task_id is provided, uses the active conversation.
Parameters:
task_id(optional): Task ID (timestamp) of the conversation. If not provided, uses the active conversation. Special values: "ACTIVE_A" or "ACTIVE_B" to explicitly request active tasks.
get_active_task
Gets the active task(s).
Parameters:
label(optional): Optional label (A, B) to filter by.
send_external_advice
Sends advice to another conversation. Supports both simple and structured formats.
Simple Format (backward compatible):
{
"target_task_id": "1234567890",
"message": "Your advice here",
"source_task_id": "optional-source-id"
}
Structured Format:
{
"target_task_id": "1234567890",
"title": "Message Summary",
"content": "Detailed message content",
"type": "info|warning|error",
"priority": "low|medium|high",
"source_task_id": "optional-source-id"
}
Required Parameters:
target_task_id: Task ID of the target conversation- Either
message(simple format) or bothtitleandcontent(structured format)
Optional Parameters:
source_task_id: Task ID of the source conversationtype: Message type (structured format only)priority: Message priority (structured format only)
Error Handling
The MCP server implements robust error handling with:
- Unique error codes for each error type
- Contextual information in error messages
- Graceful degradation for non-critical failures
- Consistent logging with severity levels (ERROR, WARN, INFO)
Caching
The MCP server implements caching for active tasks with a 30-second expiry to improve performance.
License
MIT
Quick Start
Clone the repository
git clone https://github.com/anthonyjj89/cline-mcp-toolsInstall dependencies
cd cline-mcp-tools
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.