
amidabuddha/unichat-ts-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Send requests to OpenAI, MistralAI, Anthropic, xAI, Google AI or DeepSeek using MCP protocol via tool or predefined prompts. Vendor API key required.
Обзор
Send requests to OpenAI, MistralAI, Anthropic, xAI, Google AI or DeepSeek using MCP protocol via tool or predefined prompts. Vendor API key required. Both STDIO and SSE transport mechanisms supported via arguments. The server implements one tool: - unichat: Send a request to unichat - Takes "messages" as required string arguments - Returns a response - code_review - Review code for best practices, potential issues, and improvements - Arguments: - code (string, required): The code to review" - document_code - Generate documentation for code including docstrings and comments - Arguments: - code (string, required): The code to comment" - explain_code - Explain how a piece of code works in detail - Arguments: - code (string, required): The code to explain" - code_rework - Apply requested changes to the provided code - Arguments: - changes (string, optional): The changes to apply" - code (string, required): The code to rework" Prerequisites: Git, Node.js and npm. Use Node.
README
Показан фрагмент оригинального README. Открыть оригинал.
Unichat MCP Server in TypeScript
Also available in Python
Send requests to OpenAI, MistralAI, Anthropic, xAI, Google AI or DeepSeek using MCP protocol via tool or predefined prompts. Vendor API key required.
Both STDIO and SSE transport mechanisms supported via arguments.
Tools
The server implements one tool:
unichat: Send a request to unichat- Takes “messages” as required string arguments
- Returns a response
Prompts
code_review- Review code for best practices, potential issues, and improvements
- Arguments:
code(string, required): The code to review"
document_code- Generate documentation for code including docstrings and comments
- Arguments:
code(string, required): The code to comment"
explain_code- Explain how a piece of code works in detail
- Arguments:
code(string, required): The code to explain"
code_rework- Apply requested changes to the provided code
- Arguments:
changes(string, optional): The changes to apply"code(string, required): The code to rework"
Development
Clean installation from source
Prerequisites: Git, Node.js and npm. Use Node.js 24 to match the repository’s publishing workflow; package.json does not declare a supported Node.js version range. Include development dependencies when installing, since the build requires TypeScript.
Clone the repository and restore dependencies from the committed package-lock.json:
git clone https://github.com/amidabuddha/unichat-ts-mcp-server.git
cd unichat-ts-mcp-server
npm ci
npm ci automatically runs prepare, which invokes npm run build. That script removes the generated build/ directory, compiles src/ into build/ using tsconfig.json, and marks build/index.js executable. With lifecycle scripts enabled (the default), no separate first build is needed. Keep package-lock.json and install development dependencies; do not use --ignore-scripts or --omit=dev for this workflow.
Before running, set UNICHAT_MODEL and UNICHAT_API_KEY in the process environment, or use the MCP client’s env configuration shown under Installing manually. Replace both placeholders with a supported model and its vendor API key. For example, in a POSIX shell:
Установка
npx -y unichat-ts-mcp-serverКонфигурация
{
"mcpServers": {
"unichat-ts-mcp-server": {
"command": "node",
"args": [
"{{/path/to}}/unichat-ts-mcp-server/build/index.js"
],
"env": {
"UNICHAT_MODEL": "YOUR_PREFERRED_MODEL_NAME",
"UNICHAT_API_KEY": "YOUR_VENDOR_API_KEY"
}
}
}