RuleGo-Server
RuleGo-Server
是基于开箱即用的规则引擎服务,它提供了基于HTTP的API接口,用于管理和执行规则链,组件市场,规则链市场以及MCP 协议支持 。
- 配套可视化可编辑器:RuleGo-Edtor
- 源码下载地址:Github (opens new window) Gitee (opens new window)
- API 文档:RuleGo-Server API文档 (opens new window)
- 在线体验地址:RuleGo-Server (opens new window)
- 在线体验地址:RuleGo-IPaaS (opens new window)
# 特性
- 基于RuleGo 独立运行的开箱即用规则引擎服务
- 可应用于边缘计算、IoT、大模型编排、应用编排、数据处理网关、自动化等应用场景
- 自动扫描组件和组件表单,提供给编辑器使用
- 支持对规则链进行可视化管理,调试,部署和对外提供API执行规则链等
- 支持RuleGo-Editor可视化前端
- 部署简单、开箱即用、不需要数据库
- 轻量级,内存小,性能高
# 下载
- rulego-server-linux-amd64-latest.zip
- rulego-server-linux-arm64-latest.zip
- rulego-server-windows-amd64-latest.zip
- rulego-server-windows-arm64-latest.zip
- rulego-server-macos-amd64-latest.zip
- rulego-server-macos-arm64-latest.zip
- Github (opens new window) Gitee (opens new window)
- 其他版本可以通过仓库自行编译:Github (opens new window) Gitee (opens new window)
# rulego-server启动
./server -c="./config.conf"
1
或者后台启动
nohup ./server -c="./config.conf" >> console.log &
1
# rulego-server-mcp
RuleGo-Server 支持 MCP(Model Context Protocol,模型上下文协议),开启后,系统会自动将所有注册的组件、规则链以及 API 注册为 MCP 工具。这使得 AI 助手(如 Windsurf、Cursor、Codeium 等)能够通过 MCP 协议直接调用这些工具,实现与应用系统的深度融合。 文档: rulego-server-mcp (opens new window)
# 配置文件参数
# 数据目录
data_dir = ./data
# cmd组件命令白名单
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
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 to file
save_run_log = false
# script max execution time
script_max_execution_time = 5000
# api是否开启jwt认证
require_auth = false
# jwt secret key
jwt_secret_key = r6G7qZ8xk9P0y1Q2w3E4r5T6y7U8i9O0pL7z8x9CvBnM3k2l1
# jwt expire time,单位毫秒
jwt_expire_time = 43200000
# jwt issuer
jwt_issuer = rulego.cc
# mcp server config
[mcp]
# Whether to enable the MCP service
enable = true
# Whether to use the component as an MCP tool
load_components_as_tool = true
# Whether to use the rule chain as an MCP tool
load_chains_as_tool = true
# Whether to add a rule chain api tool
load_apis_as_tool = true
# Exclude component list
exclude_components = comment,iterator,delay,groupAction,ref,fork,join,*Filter
# Exclude rule chain list
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
user01 = user01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
在 GitHub 上编辑此页 (opens new window)
上次更新: 2025/03/30, 16:14:27