mcp-1c
by feenlace·★ 98·综合分 48
为1C:Enterprise设计的MCP服务器,通过9个工具向AI助手提供元数据并生成准确的BSL代码。
概述
MCP-1C是一个全面的MCP服务器,连接AI助手与1C:Enterprise数据库。它提供了9个工具,让AI可以查看配置元数据、搜索代码、执行查询并获得BSL语法帮助,同时保持与实时数据库的连接。该服务器使用Go语言编写,无需依赖,支持本地模型和云端服务如Claude和GPT,确保用户数据安全。其实现采用了分片索引技术,实现快速代码搜索和非阻塞启动。
试试问 AI
装完之后,这里有 7 个你可以让 AI 做的事:
什么时候选它
如果您使用 1C:Enterprise 并希望 AI 助手了解您的特定配置同时保持数据本地化,请选择 MCP-1C。
什么时候不要选它
如果您需要访问低于 8.3.10 的版本,或者需要写入功能(此服务器为只读),请不要选择 MCP-1C。
此 server 暴露的工具
从 README 抽取出 9 个工具get_metadata_treeGet the metadata tree: directories, documents, registers, common modules and more.
get_object_structureGet attributes, tabular parts, dimensions and resources of a specific object.
get_form_structureGet the structure of a main form: elements, commands, event handlers.
get_configuration_infoGet configuration name, version, vendor, platform version, operation mode.
search_codeFull-text search in module code: smart (BM25), regex, exact. BSL synonyms.
bsl_syntax_helpHelp for 180 built-in functions, methods of types and BSL patterns.
execute_queryExecute a query in the 1C query language with parameters (SELECT only).
validate_queryCheck query syntax without execution.
get_event_logRead the registration log with filtering by date, level and user.
可对比工具
安装
安装
- 从[发布页面](https://github.com/feenlace/mcp-1c/releases)下载适合您操作系统的二进制文件
- 在您的1C数据库中安装扩展:
```bash # Windows mcp-1c --install "C:\путь\к\базе"
# macOS / Linux mcp-1c --install ~/Documents/InfoBase ```
- 启动1C的HTTP服务
- 配置您的AI客户端以使用MCP服务器:
{
"mcpServers": {
"1c": {
"command": "/path/to/mcp-1c",
"args": ["--base", "http://localhost:8080/hs/mcp-1c"]
}
}
}FAQ
- 支持哪些版本的1C:Enterprise?
- 最低支持的版本是8.3.10(商业版本)。
- MCP-1C能否与Ollama等本地模型一起使用?
- 是的,MCP-1C与模型无关,可与任何兼容的MCP客户端一起使用,包括Ollama、LM Studio和llama.cpp等本地模型。
- 使用MCP-1C时我的数据有多安全?
- 您的代码和数据保持本地存储。MCP-1C是一个本地进程,仅与您的1C数据库通信,绝不会将您的数据发送到外部服务。
mcp-1c 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。