This TypeScript MCP server, developed by Stefan, integrates the Unichat library to enable AI assistants to interact with multiple language models including OpenAI, MistralAI, Anthropic, xAI, and Google AI. It provides a unified interface for sending requests to these models via a single 'unichat' tool, abstracting away the complexities of individual APIs. The server supports both STDIO and SSE transport mechanisms and includes predefined prompts for common tasks like code review, documentation, and explanation. By offering a consistent way to leverage multiple AI models, this implementation is particularly useful for developers building flexible chatbots, multi-model AI assistants, or applications that require seamless switching between different language models.
Send a request to unichat. Takes 'messages' as required string arguments and returns a response.
Review code for best practices, potential issues, and improvements. Arguments: code (string, required): The code to review.
Generate documentation for code including docstrings and comments. Arguments: code (string, required): The code to comment.
Explain how a piece of code works in detail. Arguments: code (string, required): The code to explain.
Apply requested changes to the provided code. Arguments: changes (string, optional): The changes to apply; code (string, required): The code to rework.
No reviews yet. Be the first to review!
Sign in to join the conversation
Start the server with node to access it via any client or IDE.
node path/to/downloaded/file.mjs