Meta MCP Proxy

by nullplatform

Integrations

  • Allows exposing custom JavaScript functions as MCP tools, enabling integration of JavaScript capabilities into the tool ecosystem.

  • Supports integration with Swagger/OpenAPI APIs, as demonstrated in the example using the Petstore API for managing pets, users, orders and store data.

메타 MCP 프록시

여러 MCP 서버와 JavaScript 함수에서 도구 검색 및 실행을 지원하는 유연한 모델 컨텍스트 프로토콜(MCP) 프록시입니다. 수백 개의 도구가 있는 경우 컨텍스트 이벤트가 축소될 수 있습니다. 이 MCP는 다른 MCP(또는 라이브러리)의 래퍼 역할을 하며, 일종의 로컬 RAG(검색 증강 생성)를 통해 컨텍스트 크기를 줄입니다. LLM에 두 가지 메서드(검색 및 실행)를 제공하고 LLM에 검색에 대한 간결한 정보를 요청합니다. 실행 메서드는 간단한 프록시입니다.

도구의 목적과 LLM에서 해당 도구를 사용해야 하는 주제의 종류에 대한 세부 정보를 확장하기 위해 discoverDescriptionExtras 구성을 추가하는 것이 좋습니다.

특징

  • 🌉 통합 도구 검색 : 여러 MCP 서버에서 도구 검색
  • 🔌 프록시 실행 : 도구 호출을 적절한 서버로 라우팅합니다.
  • 🔍 스마트 검색 : 퍼지 매칭을 통해 작업에 가장 적합한 도구를 찾으세요
  • 🧩 JavaScript 통합 : 사용자 정의 JavaScript 함수를 MCP 도구로 노출
  • 📝 구성 가능 : 파일이나 명령줄 인수에서 구성 로드

용법

🧱 설치

~/Library/Application Support/Claude/claude_desktop_config.json 파일을 편집하세요.

그리고 다음을 추가합니다

지엑스피1

구성 파일 형식

config.json 은 다음 구조를 따라야 합니다.

{ "discoverDescriptionExtras": "Additional description for discovery", "discoverLimit": 10, "mcpServers": { "server-name": { "command": "command-to-execute", "args": ["arg1", "arg2"], "env": { "ENV_VAR1": "value1", "ENV_VAR2": "value2" }, "transport": "stdio" } } }

예를 들어

{ "discoverDescriptionExtras": "Api used to manage a pet store with access to pets, pet types, users, orders and store", "mcpServers": { "mcp-petstore": { "command": "uvx", "args": ["mcp-openapi-proxy"], "env": { "OPENAPI_SPEC_URL": "https://petstore.swagger.io/v2/swagger.json", "API_KEY": "xxxxx" } } } }

클로드와의 0-샷 대화 예시

이 예에서는 API에 대한 설명이 거의 없는 애완동물 가게의 데모 구성을 사용합니다.

도서관으로서

JavaScript 애플리케이션에서 Meta MCP Proxy를 라이브러리로 사용할 수도 있습니다.

import { MCPProxy } from '@nullplatform/meta-mcp-proxy'; // Create a new proxy instance const mcpProxy = new MCPProxy({ mcpServers: { "my-server": { "command": "path/to/server", "args": [], "env": {} } }, discoverLimit: 10 }); // Register a custom JavaScript function mcpProxy.registerJsFunction( "myFunction", "Description of my function", { properties: { param1: { type: "string", description: "First parameter" }, param2: { type: "number", description: "Second parameter" } }, required: ["param1"] }, async ({ param1, param2 }) => { // Implementation goes here return { content: [ { type: "text", text: JSON.stringify({ result: `Processed ${param1}` }) } ] }; } ); // Start the MCP server await mcpProxy.startMCP();

meta-mcp-proxy를 라이브러리로 사용하여 mcp를 생성하는 예

특허

MIT

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

여러 모델 컨텍스트 프로토콜(MCP) 서버와 JavaScript 함수에서 도구를 검색하고 실행할 수 있는 유연한 프록시로, 수백 개의 도구를 처리할 때에도 컨텍스트 크기를 줄여줍니다.

  1. 특징
    1. 용법
      1. 🧱 설치
        1. 구성 파일 형식
        2. 클로드와의 0-샷 대화 예시
        3. 도서관으로서
      2. 특허

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          MCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.
          Last updated -
          4
          3
          TypeScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.
          Last updated -
          48
          4
          TypeScript
          • Apple
        • -
          security
          -
          license
          -
          quality
          A specialized server that helps users create new Model Context Protocol (MCP) servers by providing tools and templates for scaffolding projects with various capabilities.
          Last updated -
          1
          TypeScript
        • -
          security
          A
          license
          -
          quality
          An MCP (Model Context Protocol) server that chains calls to other MCP tools, reducing token usage by allowing sequential tool execution with result passing
          Last updated -
          109
          25
          JavaScript
          MIT License

        View all related MCP servers

        ID: g8a0sw33sn