About Hm Editor
Hm Editor is an MCP server published by huimeicloud in the Developer Tools category: 一款轻量级、可扩展的、跨平台的、专为医疗信息化设计的电子病历编辑器内核,为EMR(电子病历系统)提供专业的结构化病历编辑与AI接入解决方案。. Conduid read 11 tools from its source: destroyEditor, getDocContent, getDocData, getDocHtml, getDocText, insertDataAtCursor and 5 more. No package is published for it, so it installs from a source checkout.
The repository has 126 stars and 52 forks, is licensed LGPL-2.1, and its last commit was on 26 Nov 2026. The latest release is v2.2.6 (22 May 2026): V2.2.6 新功能和优化 feat: 获取光标选中内容getSelectedContent、获取光标所在数据元getSelectedElement(AIED-294) feat: 新增设置元素样式接口setElementStyle(AIED-332) feat: 新增 AI 病历生成接口generateDocumentDirect f… It follows v2.2.5 (8 Mar 2026), and the 5 most recent releases go back to v2.0.0 (29 Jul 2025). It passes 3 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include editor, contenteditable, cross-platform, devtools, ckeditor4 and emr.
Install
git clone https://github.com/huimeicloud/hm_editorTools (11)
destroyEditor| Parameter | Type | Description |
|---|---|---|
| id | string | 编辑器实例ID |
| sessionId * | string | 编辑器MCP会话ID |
getDocContent| Parameter | Type | Description |
|---|---|---|
| code | string | 文档唯一编号(可选) |
| id | string | 编辑器实例ID |
| sessionId * | string | 编辑器MCP会话ID |
getDocData| Parameter | Type | Description |
|---|---|---|
| code | string | 【可选】文档唯一编号,便于多文档场景下区分。 |
| id * | string | 【必填】编辑器实例ID,用于唯一标识目标编辑器。 |
| keyList | array | 【可选】需要获取的数据元编码列表,仅返回指定数据元。 |
| sessionId * | string | 编辑器MCP会话ID |
getDocHtml| Parameter | Type | Description |
|---|---|---|
| code | string | 【可选】文档唯一编号,便于多文档场景下区分。 |
| id * | string | 【必填】编辑器实例ID,用于唯一标识目标编辑器。 |
| sessionId * | string | 编辑器MCP会话ID |
getDocText| Parameter | Type | Description |
|---|---|---|
| code | string | 【可选】文档唯一编号,便于多文档场景下区分。 |
| id | string | 【必填】编辑器实例ID,用于唯一标识目标编辑器。 |
| sessionId * | string | 编辑器MCP会话ID |
insertDataAtCursor| Parameter | Type | Description |
|---|---|---|
| content * | string | 要插入的内容,支持纯文本和HTML格式。HTML标签会被正确解析和渲染。例如:普通文本、<p>段落</p>、<strong>粗体</strong>等。 |
| sessionId * | string | 编辑器MCP会话ID |
insertImageAtCursor| Parameter | Type | Description |
|---|---|---|
| height | number | 【可选】图片显示高度,单位像素。如未指定则使用原始高度。 |
| htmlstr | string | html字符串 |
| imageUrl | string | 图片地址,支持HTTP/HTTPS URL或base64字符串。 |
| sessionId * | string | 编辑器MCP会话ID |
| width | number | 【可选】图片显示宽度,单位像素。如未指定则使用原始宽度。 |
setDocData| Parameter | Type | Description |
|---|---|---|
| code | string | 文档唯一编号 |
| data | array | 数据元数组 |
| id | string | 编辑器实例ID |
| sessionId * | string | 编辑器MCP会话ID |
setDocReadOnly| Parameter | Type | Description |
|---|---|---|
| code | string | 【可选】文档唯一编号,便于多文档场景下区分。 |
| flag * | boolean | 【必填】是否只读,true 表示只读,false 表示可编辑。 |
| id * | string | 【必填】编辑器实例ID,用于唯一标识目标编辑器。 |
| sessionId * | string | 编辑器MCP会话ID |
setDocReviseMode| Parameter | Type | Description |
|---|---|---|
| code | string | 【可选】文档唯一编号,便于多文档场景下区分。 |
| flag * | boolean | 【必填】是否启用修订模式,true表示启用修订跟踪,false表示关闭修订跟踪。 |
| id | string | 【可选】编辑器实例ID,用于唯一标识目标编辑器。 |
| sessionId * | string | 编辑器MCP会话ID |
setDocWatermark| Parameter | Type | Description |
|---|---|---|
| id * | string | 【必填】编辑器实例ID,用于唯一标识目标编辑器。 |
| sessionId * | string | 编辑器MCP会话ID |
| watermark * | string | 【必填】水印内容,支持文本。 |
| watermarkAlpha | number | 【可选】水印透明度,默认0.5。 |
| watermarkAngle | number | 【可选】水印倾斜度数,默认15度。 |
| watermarkColumn | number | 【可选】水印列数,决定水印横向分布数量。 |
| watermarkFontColor | string | 【可选】水印字体颜色,默认黑色。 |
| watermarkFontSize | number | 【可选】水印字体大小,默认12px。 |
| watermarkHeight | number | 【可选】水印高度,默认50px。 |
Security checks
- ✓README presentThe repository's README runs to about 206 words.
- ✓License declaredThe repository declares the LGPL-2.1 license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
Releases
README
The repository's README runs to about 206 words, fetched a month ago. The original in the repository is authoritative.
Read full README