unichat-ts-mcp-server
- Cloud Platforms
- Developer Tools
Send requests to OpenAI, MistralAI, Anthropic, xAI, or Google AI using MCP protocol via tool or predefined prompts. Vendor API key required.
Both STDIO and SSE transport mechanisms are supported via arguments.
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
No tools |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
UNICHAT_MODEL | No | Your preferred model name for Unichat. | |
UNICHAT_API_KEY | Yes | Your vendor API key required for authentication. |
Unichat MCP Server in TypeScript
Also available in Python
Send requests to OpenAI, MistralAI, Anthropic, xAI, or Google AI 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
Install dependencies:
Build the server:
For development with auto-rebuild:
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Runs in STDIO by default or with argument --stdio. To run in SSE add argument --sse
Run locally:
Run published:
Runs in STDIO by default or with argument --stdio. To run in SSE add argument --sse
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
The Inspector will provide a URL to access debugging tools in your browser.
If you experience timeouts during testing in SSE mode change the request URL on the inspector interface to: http://localhost:3001/sse?timeout=600000
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues with dependencies of the server.
- Extract server characteristics such as tools, resources, prompts, and required parameters.
Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.
Copy the following code to your README.md file: