MCP-сервер расширения 1C: Platform Tools для AI-агентов VS Code и Cursor: тесты, сборка, профили запуска и работа с базой в проектах конфигуратора, 1С:EDT и OneScript.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add 1c-platform-tools --env ONEC_IPC_PORT='<ONEC_IPC_PORT>' --env ONEC_IPC_TOKEN='<ONEC_IPC_TOKEN>' -- npx -y mcp-1c-platform-tools~/.codex/config.toml
[mcp_servers.1c-platform-tools]
command = "npx"
args = ["-y", "mcp-1c-platform-tools"]
env = { ONEC_IPC_PORT = "<ONEC_IPC_PORT>", ONEC_IPC_TOKEN = "<ONEC_IPC_TOKEN>" }
# codex mcp add 1c-platform-tools --env ONEC_IPC_PORT='<ONEC_IPC_PORT>' --env ONEC_IPC_TOKEN='<ONEC_IPC_TOKEN>' -- npx -y mcp-1c-platform-tools~/.cursor/mcp.json
{
"mcpServers": {
"1c-platform-tools": {
"command": "npx",
"args": [
"-y",
"mcp-1c-platform-tools"
],
"env": {
"ONEC_IPC_PORT": "<ONEC_IPC_PORT>",
"ONEC_IPC_TOKEN": "<ONEC_IPC_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"1c-platform-tools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-1c-platform-tools"
],
"env": {
"ONEC_IPC_PORT": "<ONEC_IPC_PORT>",
"ONEC_IPC_TOKEN": "<ONEC_IPC_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"1c-platform-tools": {
"command": "npx",
"args": [
"-y",
"mcp-1c-platform-tools"
],
"env": {
"ONEC_IPC_PORT": "<ONEC_IPC_PORT>",
"ONEC_IPC_TOKEN": "<ONEC_IPC_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"1c-platform-tools": {
"command": "npx",
"args": [
"-y",
"mcp-1c-platform-tools"
],
"env": {
"ONEC_IPC_PORT": "<ONEC_IPC_PORT>",
"ONEC_IPC_TOKEN": "<ONEC_IPC_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"1c-platform-tools": {
"command": "npx",
"args": [
"-y",
"mcp-1c-platform-tools"
],
"env": {
"ONEC_IPC_PORT": "<ONEC_IPC_PORT>",
"ONEC_IPC_TOKEN": "<ONEC_IPC_TOKEN>"
}
}
}
}Environment variables
ONEC_IPC_PORTONEC_IPC_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.