Skip to main content
Glama

Mistral Codestral MCP Server

by bsmi021

ミストラル コードストラル MCP サーバー

Mistral Codestral API 用の MCP サーバー実装。コード補完、バグ修正、テスト生成機能を提供します。

特徴

  • MistralのCodestralモデルによるコード補完
  • バグの検出と修正
  • 自動テスト生成
  • 複数のプログラミング言語のサポート
  • レート制限とエラー処理
  • コードファイルのリソースアクセス
  • 中間補完(FIM)のサポート
  • Zodスキーマを使用した包括的な入力検証

インストール

  1. このリポジトリをクローンする
  2. 依存関係をインストールします:
    npm install
  3. .env.example.envにコピーし、Mistral API キーを追加します。
    cp .env.example .env
  4. プロジェクトをビルドします。
    npm run build

使用法

サーバーを起動します。

npm start

構成

Mistral API キーを.envファイルに追加します。

MISTRAL_API_KEY=your_api_key_here

利用可能なツール

コード補完

完了、バグ修正、またはテスト生成のためのプロセスコード:

パラメータ:

  • code (文字列、必須): 処理するコード
  • language (文字列、オプション): プログラミング言語
  • task (文字列、必須): 次のいずれか:
    • "complete" : コード補完
    • "fix" : バグ修正
    • "test" : テスト生成
    • "fim" : 中間補完

APIの詳細

サーバーは、主に 2 つの Mistral モデルをサポートしています。

  • codestral-latest : コード関連タスクのデフォルトモデル
  • codestral-mamba-latest : Mambaアーキテクチャの代替モデル

機能は次のとおりです:

  • 自動レート制限(リクエスト間の最小100ミリ秒)
  • API呼び出しの30秒のタイムアウト
  • APIレスポンスの包括的なエラー処理
  • Zodスキーマを使用したレスポンス検証
  • レスポンスからコードブロックを自動抽出
  • APIインタラクションのデバッグログ

発達

自動リロード付きの開発モードで実行します。

npm run dev

テストを実行します:

npm test

エラー処理

サーバーは包括的なエラー処理を実装します。

  • APIエラーは適切にキャッチされフォーマットされます
  • レート制限が実装されています
  • Zodスキーマを使用した入力検証
  • クライアントへの適切なエラー伝播
  • 一般的な問題に関する具体的なエラー メッセージ:
    • 認証失敗
    • レート制限を超えました
    • サーバーエラー
    • 無効な入力検証

リソースアクセス

サーバーはfile://codeリソース URI を通じてコード ファイルへのアクセスを提供し、ワークスペース ファイルとの統合を可能にします。

ライセンス

マサチューセッツ工科大学

-
security - not tested
F
license - not found
-
quality - not tested

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.

複数のプログラミング言語のコード補完、バグ修正、テスト生成を提供し、Mistral Codestral API と統合してコード開発プロセスを強化します。

  1. 特徴
    1. インストール
      1. 使用法
        1. 構成
        2. 利用可能なツール
        3. APIの詳細
      2. 発達
        1. エラー処理
          1. リソースアクセス
            1. ライセンス

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Provides tools for collecting and documenting code from directories.
                Last updated -
                4
                81
                12
                TypeScript
                MIT License
                • Apple
                • Linux
              • A
                security
                A
                license
                A
                quality
                Enables intelligent code analysis and debugging through the Perplexity AI's API, offering detailed error analysis, pattern detection, and comprehensive solutions, with integration support for the Claude desktop client.
                Last updated -
                1
                10
                JavaScript
                MIT License
                • Apple
              • A
                security
                A
                license
                A
                quality
                Analyzes source code dependencies across multiple programming languages in the specified directory to identify file relationships, assisting in dependency management and project structure understanding.
                Last updated -
                1
                Python
                MIT License
              • -
                security
                F
                license
                -
                quality
                Provides code generation and completion capabilities using the DeepSeek API, with support for tool chaining and cost optimization.
                Last updated -
                3
                JavaScript

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/bsmi021/mcp-mistral-codestral'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server