Back to MCP directory
publicPublicdnsLocal runtime

jamb-mcp-server

基于TypeScript的MCP服务器,集成Local Victor API,支持通过命令行参数或环境变量配置,提供多种业务工具。

article

README

🚀 Jamb MCP 服务器

Jamb MCP 服务器是一个基于 TypeScript 的 MCP 服务器,它集成了本地 Victor API,能够为相关业务提供稳定可靠的支持。

🚀 快速开始

在使用 Jamb MCP 服务器之前,你需要满足以下先决条件:

  • Node.js 18+ 版本
  • 本地 Victor API 凭据

📦 安装指南

配置方法

本服务器支持多种配置方式,以下为你详细介绍:

命令行参数

这是最高优先级的配置方法,示例如下:

npm start -- \
  --server-url http://your-server.com \
  --token your_session_token \
  --site-id your_site_id \
  --port 3002

环境变量

作为次级配置方法,你可以通过以下命令设置环境变量:

export LV_SERVER_URL=http://your-server.com
export LV_SESSION_TOKEN=your_token
export LV_SITE_ID=your_site_id
export PORT=3001
export TRANSPORT=http

npm start

支持的参数

| 参数 | 详情 | |------|------| | --server-url | 本地 Victor API 的基础 URL(默认值:http://localhost:8001) | | --token | API 认证令牌 | | --site-id | 站点/账户标识符 | | --port | 服务器端口(默认值:3001) |

💻 使用示例

运行服务器

开发环境

你可以选择使用命令行参数或环境变量的方式来运行服务器:

# 命令行参数方式
npm run dev -- --token your_token --site-id your_site_id

# 或者使用环境变量方式
export LV_SESSION_TOKEN=your_token
export LV_SITE_ID=your_site_id
npm run dev

生产环境

同样,你可以使用命令行参数或环境变量的方式:

# 命令行参数方式
npm start -- --token your_token --site-id your_site_id

# 或者使用环境变量方式
export LV_SESSION_TOKEN=your_token
export LV_SITE_ID=your_site_id
export TRANSPORT=http
npm start

可用的 MCP 工具

  • echo:用于测试的简单回显工具
  • describe_business_schema:获取业务信息的详细架构
  • read_business:检索当前业务信息
  • update_business:更新业务配置资料

📚 详细文档

配置优先级

配置的优先级顺序如下:

  1. 命令行参数
  2. 环境变量
  3. 默认值
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client