Skip to main content
Glama

mcp服务器

初始化

根据您的首选环境选择以下初始化方法之一:

Node 环境(推荐)

初始化 Node 环境(安装依赖项、构建服务器并配置 MCP 设置):

make node-init

Docker 环境

初始化 Docker 环境(构建 Docker 镜像并配置 MCP 设置):

make docker-init

Related MCP server: MCP Server Demo

发展

使用 Node(推荐)

要使用 Node 构建并运行服务器:

# Build the server
make node-build

# Configure the server
make node-config

使用 Docker

要使用 Docker 构建并运行服务器:

# Build the Docker image
make docker-build

# Run the Docker container
make docker-run

# Stop the Docker container
make docker-stop

# Clean up Docker resources
make docker-clean

MCP 设置

运行make node-config时,MCP 设置会自动刷新。如果您需要手动刷新 MCP 设置,请执行以下操作:

make mcp-refresh

运行服务器后,您需要配置 MCP 设置:

  1. 打开你的 IDE 设置

  2. 导航至 MCP 配置部分

  3. 使用以下设置添加新的 MCP 服务器:

    • 名称:MCP 服务器

    • 版本:1.0.0

    • 路径:您构建的服务器可执行文件的路径

该项目是使用 bun v1.2.5 中的bun init创建的。Bun 是一个快速的一体化 JavaScript 运行时。

示例-mcp-服务器

Related MCP Connectors

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server implementation that can be run directly or through Docker, enabling AI assistants to interact with external systems through the MCP standard.
    2
    -
  • F
    license
    B
    quality
    D
    maintenance
    A template MCP server that provides a basic structure and configuration for building Model Context Protocol servers. Includes Docker support, environment configuration, and examples for both STDIO and SSE transport modes.
    1
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server designed for learning and experimentation. It provides a foundational setup for developers to build, run, and debug MCP server implementations using Node.js.
    -