✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

TianGong-LCA-MCP

中文 | English

TianGong LCA Model Context Protocol (MCP) Server 支持 STDIO 和 SSE 两种协议。

启动 MCP 服务器

客户端 STDIO 服务器

npm install -g @tiangong-lca/mcp-server

npx dotenv -e .env -- 
npx @tiangong-lca/mcp-server

远程 SSE 服务器

npm install -g @tiangong-lca/mcp-server
npm install -g supergateway

npx dotenv -e .env -- 
npx -y supergateway 
    --stdio "npx -y @tiangong-lca/mcp-server" 
    --port 3001 
    --ssePath /sse --messagePath /message

使用 Docker

# 使用 Dockerfile 构建 MCP 服务器镜像(可选)
docker build -t linancn/tiangong-lca-mcp-server:0.0.1 .

# 拉取 MCP 服务器镜像
docker pull linancn/tiangong-lca-mcp-server:0.0.1

# 使用 Docker 启动 MCP 服务器
docker run -d 
    --name tiangong-lca-mcp-server 
    --publish 3001:80 
    --env-file .env 
    linancn/tiangong-lca-mcp-server:0.0.1

开发

环境设置

# 安装 Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
nvm install 22
nvm use

# 安装依赖
npm install

# 更新依赖
npm update && npm ci

代码格式化

# 使用代码检查工具格式化代码
npm run lint

本地测试

STDIO 服务器

# 使用 MCP Inspector 启动 STDIO 服务器
npm start

SSE 服务器

# 打包当前项目
npm run build && npm pack

# 如果需要可以全局安装 supergateway(可选)
npm install -g supergateway

# 启动 SSE 服务器,如配置了参数 --baseUrl ,应设置为有效的 IP 地址或域名
npx dotenv -e .env -- 
npx -y supergateway 
    --stdio "npx -y tiangong-lca-mcp-server-0.0.1.tgz" 
    --port 3001 
    --ssePath /sse 
    --messagePath /message

# 启动 MCP Inspector
npx @modelcontextprotocol/inspector

发布

npm login

npm run build && npm publish

Featured Templates

View More
AI Characters
Your Speaking Avatar
169 927
AI Engineering
Python Bug Fixer
119 1433
AI Assistants
AI Chatbot Starter Kit v0.1
140 912
Verified Icon
AI Assistants
Speech to Text
137 1881
AI Assistants
Talk with Claude 3
159 1522

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.