Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
- "src/**"
- "tests/**"
- "samples/**"
- "docs/**"

permissions:
contents: read
Expand Down
26 changes: 26 additions & 0 deletions ModelContextProtocol.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,32 @@
<File Path=".github/workflows/release.md" />
<File Path=".github/workflows/release.yml" />
</Folder>
<Folder Name="/docs/" />
<Folder Name="/docs/concepts/" />
<Folder Name="/docs/concepts/elicitation/" />
<Folder Name="/docs/concepts/elicitation/samples/" />
<Folder Name="/docs/concepts/elicitation/samples/client/">
<Project Path="docs/concepts/elicitation/samples/client/ElicitationClient.csproj" />
</Folder>
<Folder Name="/docs/concepts/elicitation/samples/server/">
<Project Path="docs/concepts/elicitation/samples/server/Elicitation.csproj" />
</Folder>
<Folder Name="/docs/concepts/logging/" />
<Folder Name="/docs/concepts/logging/samples/" />
<Folder Name="/docs/concepts/logging/samples/client/">
<Project Path="docs/concepts/logging/samples/client/LoggingClient.csproj" />
</Folder>
<Folder Name="/docs/concepts/logging/samples/server/">
<Project Path="docs/concepts/logging/samples/server/Logging.csproj" />
</Folder>
<Folder Name="/docs/concepts/progress/" />
<Folder Name="/docs/concepts/progress/samples/" />
<Folder Name="/docs/concepts/progress/samples/client/">
<Project Path="docs/concepts/progress/samples/client/ProgressClient.csproj" />
</Folder>
<Folder Name="/docs/concepts/progress/samples/server/">
<Project Path="docs/concepts/progress/samples/server/Progress.csproj" />
</Folder>
<Folder Name="/samples/">
<Project Path="samples/AspNetCoreMcpServer/AspNetCoreMcpServer.csproj" />
<Project Path="samples/ChatWithTools/ChatWithTools.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ModelContextProtocol.Core" Version="0.3.0-preview.3" />
<ProjectReference Include="../../../../../src/ModelContextProtocol.Core/ModelContextProtocol.Core.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions docs/concepts/elicitation/samples/client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
async ValueTask<ElicitResult> HandleElicitationAsync(ElicitRequestParams? requestParams, CancellationToken token)
{
// Bail out if the requestParams is null or if the requested schema has no properties
if (requestParams?.RequestedSchema?.Properties == null)
if (requestParams is null || requestParams.RequestedSchema?.Properties is null)
{
return new ElicitResult();
}

// Process the elicitation request
if (requestParams?.Message is not null)
if (requestParams.Message is not null)
{
Console.WriteLine(requestParams.Message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ModelContextProtocol.AspNetCore" Version="0.3.0-preview.3" />
<ProjectReference Include="../../../../../src/ModelContextProtocol.AspNetCore/ModelContextProtocol.AspNetCore.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion docs/concepts/logging/samples/client/LoggingClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ModelContextProtocol.Core" Version="0.3.0-preview.3" />
<ProjectReference Include="../../../../../src/ModelContextProtocol.Core/ModelContextProtocol.Core.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion docs/concepts/logging/samples/server/Logging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ModelContextProtocol.AspNetCore" Version="0.3.0-preview.3" />
<ProjectReference Include="../../../../../src/ModelContextProtocol.AspNetCore/ModelContextProtocol.AspNetCore.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ModelContextProtocol.Core" Version="0.3.0-preview.3" />
<ProjectReference Include="../../../../../src/ModelContextProtocol.Core/ModelContextProtocol.Core.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion docs/concepts/progress/samples/server/Progress.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ModelContextProtocol.AspNetCore" Version="0.3.0-preview.3" />
<ProjectReference Include="../../../../../src/ModelContextProtocol.AspNetCore/ModelContextProtocol.AspNetCore.csproj" />
</ItemGroup>

</Project>
Loading