Skip to main content
Glama

MCP Remote Server

コードベースに基づいたより技術的な詳細を記載した拡張 README を以下に示します。

mcp-リモートサーバー

リモート設定から動的に機能を読み込む、設定可能なモデルコンテキストプロトコル(MCP)サーバーです。ModelContextProtocol利用して、ローカル MCP クライアントと通信できるローカルサーバーを作成します。

概要

mcp-remote-server MCP クライアントとリモート API 間のブリッジとして機能します。リモートホスト構成( MCP_CONTROL_PLANE_URLで指定)を解析します。この構成には、リモート API エンドポイントを指すツール、リソース、プロンプトのリストが含まれています。

主な特徴

  • 動的構成: サーバーの機能はリモートJSON構成を通じて定義されます
  • 自動更新: 設定は60秒ごとに自動的に更新されます
  • すべてのMCPプリミティブをサポート:
    • ツール: リモート API 呼び出しを通じてアクションを実行する
    • リソース: リモートデータを読み取り可能なリソースとして公開する
    • プロンプト: 再利用可能なプロンプトテンプレートを定義する

設定形式

{ "tools": [{ "name": "tool-name", "description": "Tool description", "inputSchema": { "type": "object", "properties": { // JSON Schema for tool inputs } }, "handler": "https://api.example.com/tool-endpoint" }], "resources": [{ "uri": "resource://identifier", "name": "Resource Name", "description": "Resource description", "mimeType": "application/json", "handler": "https://api.example.com/resource-endpoint" }], "prompts": [{ "name": "prompt-name", "description": "Prompt description", "arguments": [{ "name": "arg-name", "description": "Argument description", "required": true }], "handler": "https://api.example.com/prompt-endpoint" }] }

ハンドラーAPIの要件

リモート ハンドラーは、適切にフォーマットされた応答を返す必要があります。

  • ツールハンドラー: 文字列化され、MCP ツール応答にラップされる JSON を返します。
  • リソースハンドラ: 指定された mimeType に一致するコンテンツを返します
  • プロンプトハンドラ: 文字列(メッセージに自動的にラップされる)またはMCP形式のメッセージの配列を返します。

インストール

bun install

使用法

  1. コントロール プレーンの URL を設定します。
export MCP_CONTROL_PLANE_URL="https://your-config-endpoint"
  1. サーバーを実行します。
bun run index.ts

制限事項

  • HTTP/HTTPSハンドラーエンドポイントのみサポート
  • 構成はHTTP GETリクエスト経由でアクセス可能である必要がある
  • ハンドラのレスポンスはJSON互換である必要があります
  • ローカルでのみ実行(標準の MCP 制限)

このプロジェクトは、bun v1.1.32 のbun initを使用して作成されました。Bun高速なオールインワン JavaScript ランタイムです。Bun を選んだのは、高速であることと、少し変わったものを試してみたかったからです。

このプロジェクトでも、型チェックとリンティングにBiomeを使用しています。Bunと同じ理由でBiomeを選びました。何か違うものを探していたので、JSにgofmtのようなツールがあればいいのにと思いました。これは良いスタートです。

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

local-only server

The server can only run on the client's local machine because it depends on local resources.

リモート構成から機能を動的にロードし、MCP クライアントとリモート API を橋渡ししてアクションの実行、リソースへのアクセス、プロンプト テンプレートの利用を可能にする、構成可能な MCP サーバーです。

  1. 概要
    1. 主な特徴
    2. 設定形式
    3. ハンドラーAPIの要件
  2. インストール
    1. 使用法
      1. 制限事項

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          An MCP server to run commands.
          Last updated -
          2
          933
          160
          TypeScript
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          A tool that dynamically generates and configures MCP servers by automatically creating necessary directories and files according to user specifications.
          Last updated -
          1
          9
          9
          JavaScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          An MCP server that connects to the Resource Hub, allowing centralized configuration and management of tools and resources across different MCP environments.
          Last updated -
          2
          JavaScript
          • Apple
        • A
          security
          A
          license
          A
          quality
          A dynamic service that creates and manages Model Context Protocol (MCP) servers, allowing users to spawn, customize, and control multiple MCP servers as child processes.
          Last updated -
          5
          65
          TypeScript
          MIT License
          • Apple
          • Linux

        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/sirmews/mcp-remote-server'

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