
ecolash/mcplex-ai-v1.0
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
𝗠𝗼𝗱𝗲𝗹 𝗖𝗼𝗻𝘁𝗲𝘅𝘁 𝗣𝗿𝗼𝘁𝗼𝗰𝗼𝗹 (𝗠𝗖𝗣) 𝗕𝗮𝘀𝗲𝗱 𝗖𝗟𝗜 𝗔𝗜 | 𝗧𝗼𝗼𝗹 𝗜𝗻𝘁𝗲𝗴𝗿𝗮𝘁𝗶𝗼𝗻 | 𝗚𝗲𝗺𝗶𝗻𝗶 𝟮.𝟬
Обзор
This document provides an introduction to MCPlex-AI v1.0, a system that integrates Google's Gemini large language model with external tools through a Model Context Protocol (MCP). Unlike typical chatbot frontends, MCPlex-AI runs entirely from the command line, giving users fine-grained control and a minimalistic interface to execute intelligent queries and trigger tool-based actions — all from a single terminal. The document covers the system's purpose, high-level architecture, key components, and interaction patterns. For detailed information about specific components, please refer to their respective sections: MCPlex-AI v1.0 is designed to enhance the capabilities of large language models (Google Gemini-2.0) by enabling them to interact with external tools and APIs. This allows the AI to: 1) Access real-time information (news, Wikipedia, etc.
README
Показан фрагмент оригинального README. Открыть оригинал.
MCPlex-AI v1.0
This document provides an introduction to MCPlex-AI v1.0, a system that integrates Google’s Gemini large language model with external tools through a Model Context Protocol (MCP). Unlike typical chatbot frontends, MCPlex-AI runs entirely from the command line, giving users fine-grained control and a minimalistic interface to execute intelligent queries and trigger tool-based actions — all from a single terminal. The document covers the system’s purpose, high-level architecture, key components, and interaction patterns. For detailed information about specific components, please refer to their respective sections:
Purpose
MCPlex-AI v1.0 is designed to enhance the capabilities of large language models (Google Gemini-2.0) by enabling them to interact with external tools and APIs. This allows the AI to:
- Access real-time information (news, Wikipedia, etc.)
- Perform specific actions (post to Twitter, search files)
- Calculate results (truth tables, mathematical operations)
- Retrieve data from external services (GitHub, OMDB)
System Architecture
The system follows a client-server architecture where the client handles user interaction and AI communication, while the server manages tool execution. MCPlex-AI consists of three primary components:
- MCP Client (client/index.js): Handles user chat with Google Gemini AI, sends tool execution requests to the server
- MCP Server (server/index.js): Manages tool registration and execution, handles client requests
- Tool System (server/tools.js): Collection of tools that extend the AI’s capabilities
The diagram below illustrates the high-level architecture of the system:
Available Tools
| Tool Name | Description | Source Location |
|---|---|---|
| print-menu | Prints available tools | server/tools.js (37-71) |
| news-by-topic | Fetches news headlines | server/tools.js (74-128) |
| twitter-X-post | Posts to Twitter/X | server/tools.js (156-177) |
| wikipedia-search | Searches Wikipedia | server/tools.js (180-225) |
| github-repo-info | Gets GitHub repo info | server/tools.js (228-268) |
| movie-ratings | Gets movie information | server/tools.js (271-354) |
| local-file-search | Searches local files | server/tools.js (356-522) |
| truth_table | Generates truth tables | server/tools.js (525-588) |
| define_word | Gets word definitions | server/tools.js (590-618) |
Usage
1. Print Menu Tool
Name: print-menu Description: Prints what the MCP server can do with the available tools, provides descriptions of tools.
Input Parameters:
- title (string, optional): Optional title for the menu
Установка
npx nodemon index.js