
SAP Crystal Reports.rpt文件的MCP服务器:检查并编辑AI助手的报告(Claude Code, Claude Desktop, Cursor)
概览
一个允许AI助手的MCP服务器(Claude Code, Claude Desktop, Cursor,.). .rpt是一种二进制格式,因此AI不能作为文本编辑. 此服务器将正式的 Crystal Reports.NET 运行时间(Engine + in- process Report applications Server)包裹起来,并曝光安全,结构化的编辑操作作为MCP工具. 位置和大小在(1,440 = 1英寸,567 ≈ 1 cm),Crystal的本土单位. 所有工具接受子报告在子报告内工作. - 每一个编辑只将文件复制到相邻的 rptmcp backup/ . rpt后,才会覆盖文件。 传递输出 path 以写入新文件 。 - 删除 公式,删除 参数,删除 running total并删除 table 拒绝,但字段仍在使用(字段对象,嵌入到文本对象,公式,选择/条件公式,组,类型,SQL命令),并列出使用位置. 强:真也删除被绑定的对象。 没有这个守护, Crystal 默默地将每个被绑在被删除的公式上的对象都放下.
概述(AI 翻译)
** 联合国** ***
** SAP Crystal Reports [[T0] 文件的MCP服务器。 **
一个允许AI助手的MCP服务器(Claude Code, Claude Desktop, Cursor,.) 读取并编辑了SAP Crystal Reports [[T1] 文件.
.rpt是二进制格式,因此AI不能作为文本编辑. 此服务器将正式的 Crystal Reports.NET 运行时间(Engine + in- process Report applications Server)包裹起来,并曝光安全,结构化的编辑操作作为MCP工具.
□ 工具
游戏工具 它会做什么?
|-|-|-.
QQ list_reports 列表 [T4] 文件夹中的文件 QQ
QQ inspect_report 页面设置,表格 / SQL 命令 / 连接, 链接, 参数, 公式, 选择公式, 组, 类型, 区块和每个对象( 位置, 文本, 绑定字段, 字体), 包括 ** 有条件的公式 ** 隐藏在格式中( 上, 颜色, 数字格式… ) **
QQ[ [T6]] 运行数个编辑操作, 包含一个负载、 一个备份和一个保存; 全部或一无所有 QQ
编辑、创建或删除公式字段 QQ[ [T10]] 记录或分组选择公式QQ
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
rpt-mcp
English | 中文
An MCP server for SAP Crystal Reports .rpt files.
An MCP server that lets AI assistants (Claude Code, Claude Desktop, Cursor, …) read and edit SAP Crystal Reports .rpt files.
.rpt is a binary format, so an AI cannot edit it as text. This server wraps the official Crystal Reports .NET runtime (Engine + in-process Report Application Server) and exposes safe, structured edit operations as MCP tools.
Tools
| Tool | What it does |
|---|---|
list_reports |
List .rpt files in a folder |
inspect_report |
Page setup, tables / SQL commands / connections, links, parameters, formulas, selection formulas, groups, sorts, sections and every object (position, text, bound field, font), including conditional formulas hidden in formatting (suppress, color, number format…) |
batch_edit |
Run several edit operations with one load, one backup and one save; all-or-nothing |
diff_reports |
Structural diff between two reports (e.g. backup vs. edited) |
set_formula / delete_formula |
Edit, create or delete formula fields |
set_selection_formula |
Record or group selection formula |
add_parameter / set_parameter / delete_parameter |
Report parameters; set_parameter changes prompt, type, multiple values or defaults in place, keeping every formula that uses it |
add_group / delete_group |
Group on a field (per shift, per day, per month…); returns the new Group Header/Footer sections. Subtotals are formulas like Sum({T.Qty}, {T.Shift}) in the group footer |
add_sort / delete_sort |
Record sort (ascending/descending); on a grouped field add_sort flips the group’s order |
add_running_total / delete_running_total |
Running totals (sum, count, distinct count, average, min, max) evaluated per record, on change of a field/group or on a formula, and reset never / per field / per group / on a formula |
set_command_sql |
Replace the SQL of an existing SQL Command table (experimental) |
add_table |
Add a database table (OLE DB / ADO, e.g. SQL Server or LocalDB) so its columns can be placed on the report; returns the column list |
set_datasource |
Repoint tables to another server/database, optionally switching OLE DB provider (persisted) |
remove_table |
Remove a table / command (guarded: refuses while its fields are used unless force) |
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"rpt-mcp": { "command": "C:\\path\\to\\rpt-mcp.exe" }
}
}