Back to MCP directory
publicPublicdnsLocal runtime

rulego-server

RuleGo-Server是一个基于RuleGo的轻量级、高性能、模块化的自动化工作流平台,支持可视化编排、热更新、AI支持及多租户,适用于iPaaS、API编排、IoT规则引擎等多种场景。

article

README

🚀 服务器端

本服务器端项目提供了一系列的配置参数,可用于灵活地对服务器进行配置,以满足不同场景的需求。

📦 安装指南

文档中未提及安装步骤,暂不展示。

📚 详细文档

🔧 配置文件参数

config.conf 文件包含了服务器端的各项配置参数,以下是详细说明:

# 数据目录
data_dir = ./data
# 命令行组件命令白名单
cmd_white_list = cp,scp,mvn,npm,yarn,git,make,cmake,docker,kubectl,helm,ansible,puppet,pytest,python,python3,pip,go,java,dotnet,gcc,g++,ctest
# 是否加载第三方Lua库
load_lua_libs = true
# HTTP服务器
server = :9090
# 默认用户名
default_username = admin
# 是否将节点执行日志记录到日志文件
debug = true
# 最大节点日志大小,默认40
max_node_log_size =40
# 资源映射,支持通配符,多个映射用逗号分隔,格式:/url/*filepath=/path/to/file
resource_mapping = /editor/*filepath=./editor,/images/*filepath=./editor/images
# 节点池文件,在规则链JSON格式中,示例:./node_pool.json
node_pool_file=./node_pool.json
# 是否将运行日志保存到文件
save_run_log = false
# 脚本最大执行时间
script_max_execution_time = 5000
# 是否启用JWT身份验证
require_auth = false
# JWT密钥
jwt_secret_key = r6G7qZ8xk9P0y1Q2w3E4r5T6y7U8i9O0pL7z8x9CvBnM3k2l1
# JWT过期时间,以毫秒为单位
jwt_expire_time = 43200000
# JWT issuer
jwt_issuer = rulego.cc
# MCP服务器配置
[mcp]
# 是否启用MCP服务
enable = true
# 是否将组件作为MCP工具加载
load_components_as_tool = true
# 是否将规则链作为MCP工具加载
load_chains_as_tool = true
# 是否添加规则链API工具
load_apis_as_tool = true
# 排除的组件列表
exclude_components = comment,iterator,delay,groupAction,ref,fork,join,*Filter
# 排除的规则链列表
exclude_chains =

# pprof配置
[pprof]
# 是否启用pprof
enable = false
# pprof地址
addr = 0.0.0.0:6060

# 全局自定义配置,组件可通过${global.xxx}访问值
[global]
# 示例
sqlDriver = mysql
sqlDsn = root:root@tcp(127.0.0.1:3306)/test

# 用户列表
# 配置用户名和密码格式为username=password[,apiKey]。apiKey可选。
# 如果配置了apiKey,调用者可以直接通过apiKey访问接口,无需身份验证。
[users]
admin = admin,2af255ea5618467d914c67a8beeca31d
user01 = user01,2af255ea5618467d914c67a8beeca51c

📞 联系我们

如果您在使用过程中遇到任何问题或有相关建议,可通过以下邮箱联系我们: 邮箱:rulego@outlook.com

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