Kobold MCP Server

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Supports contributing through GitHub and using the GitHub issue tracker for support

  • Provides OpenAI-compatible API endpoints for text completion

Kobold MCP サーバー

KoboldAIとのインターフェースとなるモデルコンテキストプロトコル(MCP)サーバー実装。このサーバーにより、KoboldAIのテキスト生成機能とMCP互換アプリケーションとの統合が可能になります。

特徴

  • KoboldAIによるテキスト生成
  • 永続メモリによるチャット完了
  • OpenAI互換APIエンドポイント
  • 安定拡散積分
  • 公式MCP SDKをベースに構築
  • TypeScript実装

インストール

npm install kobold-mcp-server

前提条件

  • Node.js (v16 以上)
  • npm または yarn パッケージマネージャー
  • KoboldAIインスタンスの実行

使用法

import { KoboldMCPServer } from 'kobold-mcp-server'; // Initialize the server const server = new KoboldMCPServer(); // Start the server server.start();

構成

サーバーは、環境変数または構成オブジェクトを通じて構成できます。

const config = { apiUrl: 'http://localhost:5001' // KoboldAI API endpoint }; const server = new KoboldMCPServer(config);

サポートされているAPI

  • コア KoboldAI API (テキスト生成、モデル情報)
  • 会話メモリによるチャット完了
  • テキスト補完(OpenAI互換)
  • 安定拡散積分(txt2img、img2img)
  • 音声文字変換とテキスト読み上げ
  • ウェブ検索機能

発達

  1. リポジトリをクローンします。
git clone https://github.com/yourusername/kobold-mcp-server.git cd kobold-mcp-server
  1. 依存関係をインストールします:
npm install
  1. プロジェクトをビルドします。
npm run build

依存関係

  • @modelcontextprotocol/sdk : ^1.0.1
  • node-fetch : ^2.6.1
  • zod :^3.20.0
  • zod-to-json-schema : ^3.23.5

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

MIT ライセンス - 詳細については LICENSE ファイルを参照してください。

サポート

問題や機能のリクエストについては、GitHub の問題追跡ツールを使用してください。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

チャット補完、安定した拡散、OpenAI 互換 API エンドポイントなどの機能を備え、KoboldAI のテキスト生成機能と MCP 互換アプリケーション間の統合を可能にするサーバー。

  1. Features
    1. Installation
      1. Prerequisites
        1. Usage
          1. Configuration
            1. Supported APIs
              1. Development
                1. Dependencies
                  1. Contributing
                    1. License
                      1. Support
                        ID: a2xd4hoij7