# Интеграция

Настройка подключения MCP-серверов к Cursor IDE.

## Обзор

MCP-серверы подключаются к Cursor через файл конфигурации `mcp.json`. Каждый сервер регистрируется как отдельный MCP-провайдер.

## Содержание

* [Формат mcp.json](/mcp-servery-1c/integraciya/cursor-mcp-json.md) — структура конфигурации
* [Несколько серверов](/mcp-servery-1c/integraciya/neskolko-serverov.md) — подключение всех серверов
* [Cursor Rules для 1С](/mcp-servery-1c/integraciya/cursor-rules.md) — правила для эффективной работы

## Быстрый старт

### 1. Найдите файл mcp.json

```
%APPDATA%\Cursor\User\globalStorage\mcp.json
```

### 2. Добавьте конфигурацию сервера

```json
{
  "mcpServers": {
    "1c-syntax-checker-mcp": {
      "url": "http://localhost:8002/mcp",
      "connection_id": "1c_lsp_service_001"
    }
  }
}
```

### 3. Перезапустите Cursor

Закройте и откройте Cursor для применения изменений.

### 4. Проверьте подключение

Задайте вопрос, связанный с MCP-сервером. ИИ должен использовать инструменты сервера.

## Порядок подключения

Рекомендуемый порядок добавления серверов:

1. **SyntaxCheckServer** — проверка синтаксиса
2. **HelpSearchServer** — справка платформы
3. **SSLSearchServer** — справка БСП
4. **TemplatesSearchServer** — шаблоны кода
5. **CodeMetadataSearchServer** — метаданные конфигурации
6. **Graph Metadata Search** — графовый поиск
7. **1CCodeChecker** — 1С:Напарник


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onerpa.ru/mcp-servery-1c/integraciya.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
