Python での Unichat MCP サーバー
TypeScriptでも利用可能
ツールまたは事前定義されたプロンプトを介して、MCPプロトコルを使用してOpenAI、MistralAI、Anthropic、xAI、Google AI、DeepSeek、Alibaba、Inceptionにリクエストを送信します。ベンダーAPIキーが必要です。
ツール
サーバーは 1 つのツールを実装します。
unichat
: unichatにリクエストを送信する- 必須の文字列引数として「messages」を受け取ります
- 応答を返す
プロンプト
code_review
- ベストプラクティス、潜在的な問題、改善点についてコードをレビューする
- 引数:
code
(文字列、必須): レビューするコード
document_code
- docstring やコメントを含むコードのドキュメントを生成する
- 引数:
code
(文字列、必須): コメントするコード
explain_code
- コードがどのように動作するかを詳しく説明する
- 引数:
code
(文字列、必須): 説明するコード
code_rework
- 提供されたコードに要求された変更を適用する
- 引数:
changes
(文字列、オプション): 適用する変更code
(文字列、必須): 再作業するコード
クイックスタート
インストール
クロードデスクトップ
MacOS の場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
対応モデル:
現在サポートされているモデルのリストは、
"SELECTED_UNICHAT_MODEL"
としてこちらでご確認いただけます。関連するベンダーAPIキーを"YOUR_UNICHAT_API_KEY"
として追加してください。
例:
開発/非公開サーバーの構成
公開サーバーの構成
Smithery経由でインストール
Smithery経由で Claude Desktop 用の Unichat を自動的にインストールするには:
発達
建築と出版
配布用のパッケージを準備するには:
- 古いビルドを削除します。
- 依存関係を同期し、ロックファイルを更新します。
- パッケージディストリビューションをビルドします。
これにより、 dist/
ディレクトリにソースとホイールのディストリビューションが作成されます。
- PyPI に公開:
デバッグ
MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。
次のコマンドを使用して、 npm
経由で MCP Inspector を起動できます。
起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
ツールまたは事前定義されたプロンプトを介して、MCPプロトコルを使用してOpenAI、MistralAI、Anthropic、xAI、またはGoogle AIにリクエストを送信します。ベンダーAPIキーが必要です。
Related MCP Servers
- -securityAlicense-qualitySend 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.Last updated -1111TypeScriptMIT License
- -securityFlicense-qualityAn auto-generated MCP server that enables interaction with the OpenAI API, allowing users to access OpenAI's models and capabilities through the Multi-Agent Conversation Protocol.Last updated -Python
- AsecurityAlicenseAqualityAn MCP server that enables AI applications to access 20+ model providers (including OpenAI, Anthropic, Google) through a unified interface for text and image generation.Last updated -210PythonMIT License
- -securityFlicense-qualityA service that converts OpenAPI specifications into MCP tools, enabling AI assistants to interact with your API endpoints through natural language.Last updated -Python
Appeared in Searches
- A platform for hosting and joining online video meetings
- Analysis of Key Points in China's 2025 No. 1 Central Document and Its Relation to New Energy and Rural Revitalization
- Services for Ordering Groceries via Amazon Prime or Instacart
- Creating a server to order medicine from Apollo Clinic using prescription uploads
- An MCP that can programmatically interact with any online API