Skip to content

Commit 91df627

Browse files
committed
更新ModelContextProtocol和Scalar.AspNetCore依赖版本,优化项目兼容性和性能。同时,调整CodeRepositoryAnalyzer工具名称格式,提升代码可读性。
1 parent 4d5b8aa commit 91df627

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/KoalaWiki/KoalaWiki.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
<PackageReference Include="Microsoft.SemanticKernel" Version="1.49.0" />
3131
<PackageReference Include="Microsoft.SemanticKernel.Connectors.AzureOpenAI" Version="1.49.0" />
3232
<PackageReference Include="Microsoft.SemanticKernel.Connectors.OpenAI" Version="1.49.0" />
33-
<PackageReference Include="ModelContextProtocol" Version="0.1.0-preview.12" />
34-
<PackageReference Include="ModelContextProtocol.AspNetCore" Version="0.1.0-preview.12" />
33+
<PackageReference Include="ModelContextProtocol" Version="0.1.0-preview.13" />
34+
<PackageReference Include="ModelContextProtocol.AspNetCore" Version="0.1.0-preview.13" />
3535
<PackageReference Include="ModelContextProtocolServer.Sse" Version="0.0.1-preview-05" />
3636
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
3737
<PackageReference Include="Polly" Version="8.5.2" />
38-
<PackageReference Include="Scalar.AspNetCore" Version="2.2.7" />
38+
<PackageReference Include="Scalar.AspNetCore" Version="2.3.0" />
3939
<PackageReference Include="Serilog" Version="4.2.0" />
4040
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
4141
<PackageReference Include="Serilog.Extensions.Logging" Version="9.0.1" />

src/KoalaWiki/MCP/MCPExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static IServiceCollection AddKoalaMcp(this IServiceCollection service)
4343
[
4444
new Tool()
4545
{
46-
Name = "CodeRepositoryAnalyzer",
46+
Name = $"{owner}-{name}-CodeRepositoryAnalyzer",
4747
Description =
4848
$"Generate detailed technical documentation for the {owner}/{name} GitHub repository based on user inquiries. Analyzes repository structure, code components, APIs, dependencies, and implementation patterns to create comprehensive developer documentation with troubleshooting guides, architecture explanations, customization options, and implementation insights.",
4949
InputSchema =
@@ -54,7 +54,7 @@ public static IServiceCollection AddKoalaMcp(this IServiceCollection service)
5454
}))
5555
.WithCallToolHandler((async (context, token) =>
5656
{
57-
if (context.Params?.Name == "CodeRepositoryAnalyzer")
57+
if (context.Params?.Name.EndsWith("CodeRepositoryAnalyzer") == true)
5858
{
5959
var warehouse = context.Services!.GetService<WarehouseTool>();
6060

0 commit comments

Comments
 (0)