MCP.so
登录
M

MCP Server

@otoTree

基本信息

分类

其他

传输方式

stdio

作者

otoTree

提交者

otoTree

关于 MCP Server

暂无概览

MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-ototree": {
      "command": "uv",
      "args": [
        "init",
        "project",
        "-",
        "name"
      ]
    }
  }
}

MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP?

MCP (Model Context Protocol) is a client tool that exposes local MCP servers through Flask, enabling platforms like Coze, Dify, and FastGPT to interact with local resources via self-hosted intranet penetration.

How to use MCP?

Set up the environment with uv, create a project directory, activate a virtual environment, and install dependencies from pyproject.toml. Configure mcp_server.json with server definitions and set environment variables in a .env file. Run python server.py to start the Flask server. Use POST requests to endpoints like /list_tool, /call_tool, /list_server, /list_files, and GET requests to /get_download_link/<secret_key>/<filename>.

Key features of MCP

  • Exposes local MCP servers via HTTP API.
  • Supports multiple server definitions in a JSON config.
  • Provides endpoints to list tools, call tools, and list servers.
  • Includes file listing and download link generation.
  • Uses secret key authentication for API requests.
  • Works with self-signed certificates for local development.

Use cases of MCP

  • Integrate local MCP tools (e.g., weather, filesystem) with cloud AI platforms.
  • Allow Coze, Dify, or FastGPT to call local Python scripts via API.
  • Securely expose file management capabilities to external services.
  • Debug and test MCP server interactions with a simple REST interface.

常见问题

1

What is required to run MCP?

You need `uv` installed, a virtual environment, and dependencies from `pyproject.toml`. A `mcp_server.json` file defines the servers to expose, and a `.env` file holds sensitive keys.

2

How do I configure servers in MCP?

Edit `mcp_server.json` with entries containing `desc`, `command`, and `args`. Each entry represents an MCP server that will be exposed via the Flask API.

3

Is authentication supported?

Yes, all API endpoints require a `secret_key` in the request body (or URL path for downloads). The secret is defined in the `.env` file.

4

Can I use MCP in production?

The README recommends using formal SSL certificates from a trusted CA (e.g., Let’s Encrypt) for cloud deployment, as self-signed certificates may cause issues on platforms like Coze.

5

What transports does MCP support?

MCP uses HTTP POST and GET endpoints via a Flask server. The default transport is REST over HTTP/HTTPS. No other transports (like WebSocket) are mentioned.

评论

其他 分类下的更多 MCP 服务器