Sends requests to OpenAI, MistralAI, Anthropic, xAI or Google AI models through MCP tools and predefined prompts, using your own API keys.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add unichat-server-typescript --env UNICHAT_API_KEY='<UNICHAT_API_KEY>' -- npx -y @smithery/cli install unichat-ts-mcp-server --client claude~/.codex/config.toml
[mcp_servers.unichat-server-typescript]
command = "npx"
args = ["-y", "@smithery/cli", "install", "unichat-ts-mcp-server", "--client", "claude"]
env = { UNICHAT_API_KEY = "<UNICHAT_API_KEY>" }
# codex mcp add unichat-server-typescript --env UNICHAT_API_KEY='<UNICHAT_API_KEY>' -- npx -y @smithery/cli install unichat-ts-mcp-server --client claude~/.cursor/mcp.json
{
"mcpServers": {
"unichat-server-typescript": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"unichat-ts-mcp-server",
"--client",
"claude"
],
"env": {
"UNICHAT_API_KEY": "<UNICHAT_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"unichat-server-typescript": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"unichat-ts-mcp-server",
"--client",
"claude"
],
"env": {
"UNICHAT_API_KEY": "<UNICHAT_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"unichat-server-typescript": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"unichat-ts-mcp-server",
"--client",
"claude"
],
"env": {
"UNICHAT_API_KEY": "<UNICHAT_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"unichat-server-typescript": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"unichat-ts-mcp-server",
"--client",
"claude"
],
"env": {
"UNICHAT_API_KEY": "<UNICHAT_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"unichat-server-typescript": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"unichat-ts-mcp-server",
"--client",
"claude"
],
"env": {
"UNICHAT_API_KEY": "<UNICHAT_API_KEY>"
}
}
}
}需要的环境变量
UNICHAT_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。