project-context

project-context is a cursor rule for Cursor from yellow-hammer/mcp-1c-platform-tools. It costs 1,160 tokens per session, scanned A, original, MIT.

Technical context for a VS Code extension that exposes 1C Platform Tools to AI agents through an MCP server. The extension communicates with the standalone server over IPC, while the server registers one agent tool for each available 1C command.

In plain words
What is it for?
Understanding the extension entry point, starting the standalone Node server, listing and executing 1C commands, passing port and token settings, and shortening tool names to meet platform limits.
Why use it?
It explains how the extension, MCP server, IPC connection, and tool names fit together. This helps developers change the project without overlooking its runtime dependencies.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Understanding the extension entry point, starting the standalone Node server, listing and executing 1C commands, passing port and token settings, and shortening tool names to meet platform limits.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/yellow-hammer/mcp-1c-platform-tools/project-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yellow-hammer/mcp-1c-platform-tools

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-context

README.md
[![agentmods](https://agentmods.dev/badge/rules/yellow-hammer/mcp-1c-platform-tools/project-context/github.svg)](https://agentmods.dev/rules/yellow-hammer/mcp-1c-platform-tools/project-context)
Your own site
<a href="https://agentmods.dev/rules/yellow-hammer/mcp-1c-platform-tools/project-context"><img src="https://agentmods.dev/badge/rules/yellow-hammer/mcp-1c-platform-tools/project-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for project-context

Your own site · 80×15
<a href="https://agentmods.dev/rules/yellow-hammer/mcp-1c-platform-tools/project-context"><img src="https://agentmods.dev/badge/rules/yellow-hammer/mcp-1c-platform-tools/project-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,160 This file is loaded in full into every session.
When invoked 1,160 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01160 $0.01160
Opus 5.5 $0.00464 $0.00464
Sonnet 5.5 $0.00232 $0.00232
Haiku 4.5 $0.00116 $0.00116

Measured 3d ago against content hash b2eef42a390b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/project-context.mdc · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Контекст проекта

Расширение VS Code, которое предоставляет MCP-сервер (Model Context Protocol), чтобы агенты VS Code и Cursor могли вызывать команды 1c-platform-tools по каналу окна. Зависит от yellow-hammer.1c-platform-tools той версии, что ведёт реестр окон: каждое окно открывает свой канал (именованный канал Windows или Unix-сокет с токеном) и пишет запись в ~/.1c-platform-tools/windows/<id>.json. Формат записи задаёт 1c-platform-tools (src/shared/windowRegistry.ts), образец — test/fixtures/window-record.json; при смене формата правятся оба репозитория.

Архитектура

  • Точка входа: src/extension.ts в provideMcpServerDefinitions берёт окно из API 1c-platform-tools (getMcpWindow, проверка — src/platformToolsApi.ts) и включает MCP_1C_WINDOW в определение сервера для VS Code и Copilot Agent Host. Определение появляется после подключения окна. Команда «Настроить MCP для Cursor» пишет .cursor/mcp.json с путём к серверу (src/agentConfig.ts). Сервер находит окно по каталогу запуска. Процесс MCP запускает клиент, выполняется out/src/index.js (Node).
  • MCP-сервер (standalone): src/index.ts — создаёт McpServer (версия из package.json), получает список команд окна (listCommands), регистрирует один инструмент на команду. Транспорт: stdio.
  • Выбор окна: src/windowRegistry.ts читает реестр (живые окна этой версии формата), src/windowChoice.ts выбирает окно: MCP_1C_WINDOW, затем окно каталога, из которого запущен сервер, агенту вне окон — по projectPath; иначе отказ с кодом (WINDOW_NOT_FOUND, WINDOW_AMBIGUOUS, WINDOW_CLOSED, PROJECT_PATH_REQUIRED, VERSION_MISMATCH). src/windowGateway.ts выбирает окно на каждый вызов и дополняет WORKSPACE_MISMATCH окном, где открыт проект.
  • Клиент канала: src/channelClient.ts — клиент канала окна (путь и токен из реестра). Методы: listCommandDescriptors(), executeCommand(commandId, args, projectPath); отказ расширения — ChannelError с кодом.
  • Имена инструментов: src/toolName.ts — commandIdToToolName(commandId) преобразует command ID расширения (например 1c-platform-tools.configuration.loadFromSrc) в имена MCP-инструментов с сокращениями так, чтобы суммарная длина «имя сервера + имя инструмента» не превышала 60 символов (ограничение платформы). Допустимые сокращения (1Cpt, 1cpt) и правило 60 символов — в .cursor/rules/naming-abbreviations.mdc.
  • Логирование: src/logger.ts — собственный LogOutputChannel расширения (канал «1C: Platform Tools MCP»; уровень, таймстемп и фильтрацию задаёт VS Code); src/loggerServer.ts — вывод в stderr для standalone-процесса MCP (уровень из env MCP_1C_LOG_LEVEL).
  • Иконка: resources/1c-icon.png — иконка расширения, указывается в package.json.

Read the full file on GitHub · 39 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · -9 tokens per session b2eef42a390b
  2. 1mo ago Changed · +1 lines · +210 tokens per session be09cc232db1
  3. 3mo ago First seen · 38 lines · 959 tokens per session scan A 8fbe97c06bb1

Subscribe to this mod's changes

project-context is a cursor rule published in the GitHub repository yellow-hammer/mcp-1c-platform-tools (47 stars, last pushed 3d ago), licensed MIT. It adds 1,160 tokens to every session, about $0.0046 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

project-context compared with cursor rules from other repositories

project-context next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-contextyellow-hammer/mcp-1c-platform-toolsCursor rule473d agoMITA1,160Cursor
1c-coding-standardsDesko77/cursor-1c-skillsCursor rule786d agoMITA0Cursor
code-review-checklistDesko77/cursor-1c-skillsCursor rule786d agoMITA0Cursor
bsl-sslDesko77/cursor-1c-skillsCursor rule786d agoMITA0Cursor
bsp-profile-rights-apiDesko77/cursor-1c-skillsCursor rule786d agoMITA0Cursor
edt-form-xml-requirementsDesko77/cursor-1c-skillsCursor rule786d agoMITA0Cursor
sdd-workflowDesko77/cursor-1c-skillsCursor rule786d agoMITA12Cursor