MCP Catalogs
首页

mcp-1c

by feenlace·98·综合分 48

为1C:Enterprise设计的MCP服务器,通过9个工具向AI助手提供元数据并生成准确的BSL代码。

developer-toolsai-llmdatabase
22
Forks
2
活跃 Issue
本月
最近提交
2 天前
收录于

概述

MCP-1C是一个全面的MCP服务器,连接AI助手与1C:Enterprise数据库。它提供了9个工具,让AI可以查看配置元数据、搜索代码、执行查询并获得BSL语法帮助,同时保持与实时数据库的连接。该服务器使用Go语言编写,无需依赖,支持本地模型和云端服务如Claude和GPT,确保用户数据安全。其实现采用了分片索引技术,实现快速代码搜索和非阻塞启动。

试试问 AI

装完之后,这里有 7 个你可以让 AI 做的事:

:AI助手分析1C配置结构并生成准确的BSL代码
:在1C模块中进行代码搜索和重构辅助
:1C数据库的查询优化和验证
:为使用1C:Enterprise的开发人员提供BSL语法帮助
:支持哪些版本的1C:Enterprise?
:MCP-1C能否与Ollama等本地模型一起使用?
:使用MCP-1C时我的数据有多安全?

什么时候选它

如果您使用 1C:Enterprise 并希望 AI 助手了解您的特定配置同时保持数据本地化,请选择 MCP-1C。

什么时候不要选它

如果您需要访问低于 8.3.10 的版本,或者需要写入功能(此服务器为只读),请不要选择 MCP-1C。

此 server 暴露的工具

从 README 抽取出 9 个工具
  • get_metadata_tree

    Get the metadata tree: directories, documents, registers, common modules and more.

  • get_object_structure

    Get attributes, tabular parts, dimensions and resources of a specific object.

  • get_form_structure

    Get the structure of a main form: elements, commands, event handlers.

  • get_configuration_info

    Get configuration name, version, vendor, platform version, operation mode.

  • search_code

    Full-text search in module code: smart (BM25), regex, exact. BSL synonyms.

  • bsl_syntax_help

    Help for 180 built-in functions, methods of types and BSL patterns.

  • execute_query

    Execute a query in the 1C query language with parameters (SELECT only).

  • validate_query

    Check query syntax without execution.

  • get_event_log

    Read the registration log with filtering by date, level and user.

可对比工具

1c-extension-mcpbsl-assistant1c-ai-helper

安装

安装

  1. 从[发布页面](https://github.com/feenlace/mcp-1c/releases)下载适合您操作系统的二进制文件
  2. 在您的1C数据库中安装扩展:

```bash # Windows mcp-1c --install "C:\путь\к\базе"

# macOS / Linux mcp-1c --install ~/Documents/InfoBase ```

  1. 启动1C的HTTP服务
  2. 配置您的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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。