build: project skeleton (Core / Host / Tests) + MCP SDK

- src/Kompas.Mcp.Core: classlib с ссылками на interop-сборки КОМПАС
- src/Kompas.Mcp.Host: console, ModelContextProtocol 1.3.0 + Hosting
- tests/Kompas.Mcp.Tests: xUnit, ссылка на Core
- все проекты унаследовали net8.0-windows/x64 из Directory.Build.props
- docs/OPEN_QUESTIONS.md: журнал спорных решений
- .gitignore: добавлен .scratch/

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-25 23:39:04 +03:00
parent 6cf9cee49d
commit 1be3f4d8f9
8 changed files with 135 additions and 0 deletions
@@ -0,0 +1,33 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- TargetFramework (net8.0-windows) и общие свойства — из Directory.Build.props. -->
<PropertyGroup>
<RootNamespace>Kompas.Mcp.Core</RootNamespace>
<AssemblyName>Kompas.Mcp.Core</AssemblyName>
</PropertyGroup>
<!-- Вендорские interop-сборки КОМПАС (libs/kompas-interop). -->
<ItemGroup>
<Reference Include="KompasAPI7">
<HintPath>$(KompasInteropDir)\KompasAPI7.dll</HintPath>
<Private>true</Private>
</Reference>
<Reference Include="Kompas6API5">
<HintPath>$(KompasInteropDir)\Kompas6API5.dll</HintPath>
<Private>true</Private>
</Reference>
<Reference Include="Kompas6Constants">
<HintPath>$(KompasInteropDir)\Kompas6Constants.dll</HintPath>
<Private>true</Private>
</Reference>
<Reference Include="Kompas6Constants3D">
<HintPath>$(KompasInteropDir)\Kompas6Constants3D.dll</HintPath>
<Private>true</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
</ItemGroup>
</Project>
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- TargetFramework (net8.0-windows) и общие свойства — из Directory.Build.props. -->
<PropertyGroup>
<OutputType>Exe</OutputType>
<AssemblyName>kompas-mcp</AssemblyName>
<RootNamespace>Kompas.Mcp.Host</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ModelContextProtocol" Version="1.3.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Kompas.Mcp.Core\Kompas.Mcp.Core.csproj" />
</ItemGroup>
</Project>
+2
View File
@@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");