Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUGNoMCP 调试开关false
LOG_LEVELNo日志详细程度info
MCP_CONSOLE_LOGNo保持 stdout 纯净,避免破坏 stdio MCP0
WPS_MCP_LOG_DIRNo私有日志目录;已被 Git 忽略.wps-mcp-logs
WPS_MCP_LOG_PARAMSNo保持 0,避免记录文档文本、路径或密码0
WPS_MCP_TOOL_PROFILENocompact 为 29 个只读工具;full 为高风险完整目录compact

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
wps_check_connectionB

检查WPS Office连接状态

wps_get_active_documentB

获取当前打开的WPS文字文档信息

wps_get_active_workbookA

获取当前打开的WPS表格工作簿信息

wps_get_cell_valueB

读取指定单元格的值

wps_get_active_presentationB

获取当前打开的WPS演示文稿信息

wps_excel_read_rangeB

读取Excel指定范围的单元格数据,返回二维数组格式的数据。

wps_excel_get_sheet_listA

获取当前工作簿的所有工作表列表,包含名称、索引和是否为活动工作表。

wps_excel_get_selectionA

获取当前Excel中选中区域的信息,包括范围地址、行列数等。

wps_excel_get_open_workbooksA

获取当前所有已打开的Excel工作簿列表。

wps_excel_get_cell_valueC

获取Excel指定单元格的值。

wps_excel_get_formulaB

获取Excel指定单元格的公式。

wps_excel_get_cell_infoA

获取单元格的详细信息(值、公式、格式等)。

wps_word_get_active_documentB

获取当前WPS Writer活动文档的基本信息

wps_word_get_paragraphsA

获取Word文档的段落结构信息,返回每段的文本、样式和字符位置。

使用场景:

  • "了解文档的结构"

  • "查看文档有哪些段落"

  • "帮我看看模板里有哪些需要填写的位置"

  • 在填写模板前,先读取文档结构以识别填写位置

返回信息包括:段落索引、文本内容、样式名称、字符起止位置。 支持分页获取(startParagraph/endParagraph),默认返回前50段。

wps_word_find_in_documentA

在Word文档中查找文本并返回位置信息,不执行替换操作。

使用场景:

  • "找一下'项目名称'在文档的哪个位置"

  • "看看文档里有哪些地方需要填写"

  • 在使用smart_fill_field之前,先用此工具定位关键字

返回信息包括:匹配文本、字符起止位置、所在段落索引、上下文(前后50字符)。 与find_replace不同,此工具仅查找不替换,返回位置信息供后续操作使用。

wps_word_get_open_documentsA

获取当前WPS Writer中所有已打开的文档列表。

使用场景:

  • "看看现在打开了哪些文档"

  • "列出所有打开的Word文件"

  • "查看当前文档列表"

wps_word_get_document_textA

获取当前Word文档的文本内容。

使用场景:

  • "读取文档内容"

  • "获取文档的前100个字符"

  • "查看文档从第50到第200个字符的内容"

可指定起始和结束位置来获取部分文本。

wps_word_get_track_changes_statusA

获取当前文档的修订模式状态。

使用场景:

  • "看看修订模式开了没"

  • "当前文档有多少处修订"

  • "检查修订状态"

wps_ppt_get_slide_countA

获取演示文稿中的幻灯片总数。

使用场景:

  • "一共有多少页幻灯片"

  • "PPT有几页"

  • "查看幻灯片数量"

wps_ppt_get_slide_infoA

获取指定幻灯片的详细信息,包括布局、元素列表等。

使用场景:

  • "查看第3页的信息"

  • "这页有什么内容"

  • "获取幻灯片详情"

wps_ppt_get_slide_notesA

获取指定幻灯片的备注内容。

使用场景:

  • "查看第3页的备注"

  • "读取演讲备注"

  • "这页有什么备注"

wps_ppt_get_open_presentationsA

获取当前所有已打开的演示文稿列表。

使用场景:

  • "有哪些PPT打开着"

  • "列出所有演示文稿"

  • "查看打开的PPT"

wps_ppt_get_textboxesA

获取幻灯片上所有文本框的列表。

wps_ppt_get_slide_titleB

获取指定幻灯片的标题。

wps_ppt_find_ppt_textA

在演示文稿中搜索指定文本。

返回包含目标文本的幻灯片页码和形状信息。

使用场景:

  • "搜索PPT中的某段文字"

  • "查找包含关键词的幻灯片"

  • "找到所有提到xxx的位置"

wps_common_pingA

检测WPS应用连接状态。

使用场景:

  • "WPS连上了吗"

  • "检查一下WPS是否在线"

  • "测试WPS连接"

特点:

  • 快速检测WPS加载项是否可达

  • 返回连接状态信息

wps_common_wire_checkA

检查与WPS加载项之间的通信线路状态。

使用场景:

  • "检查通信状态"

  • "诊断连接问题"

  • "通信线路是否正常"

特点:

  • 比ping更详细的通信诊断

  • 返回线路延迟、协议状态等信息

wps_common_get_app_infoA

获取WPS应用的基本信息。

使用场景:

  • "WPS是什么版本"

  • "查看WPS信息"

  • "获取应用状态"

特点:

  • 返回WPS版本号、构建信息

  • 返回当前打开的文档信息

  • 返回运行平台信息

wps_common_get_selected_textA

获取当前文档中选中的文本内容。

使用场景:

  • "读取我选中的内容"

  • "获取当前选区的文字"

  • "看看我选了什么"

特点:

  • 返回当前选区的纯文本内容

  • 适用于Word、Excel、PPT

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3/5.0

Scored across 29 tools

Disambiguation2/5

Several tools overlap heavily: wps_check_connection, wps_common_ping, and wps_common_wire_check all test connectivity; wps_get_active_document duplicates wps_word_get_active_document; wps_get_cell_value duplicates wps_excel_get_cell_value. Word/PPT find functions and paragraph/text retrieval are distinct, but these redundancies create real selection risk.

Naming Consistency3/5

All names use snake_case and mostly follow wps_<domain>_<verb>_<object>, but older generic tools like wps_get_active_document, wps_get_cell_value, and wps_check_connection lack domain prefixes, while wps_ppt_find_ppt_text is redundantly worded. The pattern is readable but not consistently applied.

Tool Count2/5

29 tools is above the 25+ threshold and feels heavy, especially since several tools are near-duplicates (ping/check_connection/wire_check, active_document variants, cell_value variants) and could be consolidated or removed. It is not egregiously over-scoped for three Office applications, but it is larger than needed.

Completeness2/5

The surface is almost entirely read/inspection-oriented: it can locate and read content, but cannot modify cells, edit documents, update presentations, create files, or fill the fields that its own find tools are meant to identify. For an Office automation MCP, the inability to make any changes is a significant gap.

Maintenance

ActivityMaintained
ResponsivenessNo issues