Forge
markdown15d33a96
1# GitMcp.Core
2
3Shared construction of `git` CLI argument lists for **git-mcp** and **Cascade IDE** (ADR 0019 in cascade-ide).
4
5## Remotes (политика)
6
7- **`origin`** — GitLab (`Krawler/git-mcp-core`), канон для разработки и субмодуля в meta-repo `open`.
8- **`github`** — зеркало на GitHub: **[KarataevDmitry/git-mcp-core](https://github.com/KarataevDmitry/git-mcp-core)** (`git push github main` после согласования с GitLab). Отсюда же **Trusted Publishing** пакета `AIGuiders.GitMcp.Core` на nuget.org.
9
10## Layout
11
12- Target: **.NET 10**, **C# 14**.
13- No dependency on MCP SDK or Avalonia — only argv shapes and validation messages (`GitArgsResult`).
14
15## Consumers
16
17- **NuGet (рекомендуется):** пакет [`AIGuiders.GitMcp.Core`](https://www.nuget.org/packages/AIGuiders.GitMcp.Core) — `PackageReference` в `git-mcp` и Cascade IDE; отдельный checkout исходников для сборки не нужен после публикации на nuget.org.
18- **Исходники:** публичный репозиторий **[KarataevDmitry/git-mcp-core](https://github.com/KarataevDmitry/git-mcp-core)** (зеркало GitLab); `ProjectReference` на `GitMcp.Core.csproj` или субмодуль в meta-repo `open`.
19
20## Публикация на nuget.org (Trusted Publishing)
21
22Инструкция NuGet: [Trusted Publishing — GitHub Actions](https://learn.microsoft.com/nuget/nuget-org/trusted-publishing#github-actions-setup). В форме: owner **`KarataevDmitry`**, repository **`git-mcp-core`**, workflow file **`nuget-publish.yml`** (только имя файла). Workflow в репо: **`.github/workflows/nuget-publish.yml`**; запуск — тег **`v*`** или **Actions → Publish to NuGet → workflow_dispatch**.
23
24## Build
25
26```bash
27dotnet build
28```
29
30## Tests
31
32Unit tests for `GitCommandBuilder` live in the **git-mcp** repository (`GitMcp.Tests`).
33
View only · write via MCP/CIDE