![]() |
VOOZH | about |
dotnet add package JD.SemanticKernel.Extensions.Mcp --version 0.1.106
NuGet\Install-Package JD.SemanticKernel.Extensions.Mcp -Version 0.1.106
<PackageReference Include="JD.SemanticKernel.Extensions.Mcp" Version="0.1.106" />
<PackageVersion Include="JD.SemanticKernel.Extensions.Mcp" Version="0.1.106" />Directory.Packages.props
<PackageReference Include="JD.SemanticKernel.Extensions.Mcp" />Project file
paket add JD.SemanticKernel.Extensions.Mcp --version 0.1.106
#r "nuget: JD.SemanticKernel.Extensions.Mcp, 0.1.106"
#:package JD.SemanticKernel.Extensions.Mcp@0.1.106
#addin nuget:?package=JD.SemanticKernel.Extensions.Mcp&version=0.1.106Install as a Cake Addin
#tool nuget:?package=JD.SemanticKernel.Extensions.Mcp&version=0.1.106Install as a Cake Tool
An extensible toolkit for Microsoft Semantic Kernel that bridges Claude Code skills, plugins, and hooks into SK applications, and adds context management primitives (compaction, semantic memory) for building production-grade AI agents.
SKILL.md files (YAML frontmatter + markdown) into KernelFunction or PromptTemplatePreToolUse, PostToolUse, etc.) to SK's IFunctionInvocationFilter and IPromptRenderFilter.claude-plugin/ directories with skills, hooks, and MCP configsUseSkills(), UseHooks(), UsePlugins(), AddCompaction(), AddSemanticMemory() extension methods| Package | Description | NuGet |
|---|---|---|
JD.SemanticKernel.Extensions.Skills |
SKILL.md → KernelFunction/PromptTemplate | 👁 NuGet |
JD.SemanticKernel.Extensions.Hooks |
Claude Code hooks → SK filters | 👁 NuGet |
JD.SemanticKernel.Extensions.Plugins |
Plugin directory loader | 👁 NuGet |
JD.SemanticKernel.Extensions.Compaction |
Context window compaction middleware | 👁 NuGet |
JD.SemanticKernel.Extensions.Memory |
Semantic memory with MMR + temporal decay | 👁 NuGet |
JD.SemanticKernel.Extensions.Memory.Sqlite |
SQLite memory backend | 👁 NuGet |
JD.SemanticKernel.Extensions |
Meta-package (all of the above) | 👁 NuGet |
dotnet add package JD.SemanticKernel.Extensions
using JD.SemanticKernel.Extensions.Skills;
var kernel = Kernel.CreateBuilder()
.AddOpenAIChatCompletion("gpt-4o", apiKey)
.UseSkills("./skills/") // Scans for SKILL.md files
.Build();
A SKILL.md file follows the Claude Code / AgentSkills.io format:
---
name: code-reviewer
description: Reviews code for quality issues
allowed-tools: [Read, Grep, Glob]
---
# Code Reviewer
Review the provided code for:
1. Bug risks
2. Security vulnerabilities
3. Performance issues
Input: $ARGUMENTS
using JD.SemanticKernel.Extensions.Hooks;
var kernel = Kernel.CreateBuilder()
.AddOpenAIChatCompletion("gpt-4o", apiKey)
.UseHooks(hooks =>
{
hooks.OnFunctionInvoking("Bash|Execute", async ctx =>
{
Console.WriteLine($"Validating: {ctx.Function.Name}");
});
hooks.OnFunctionInvoked("Write|Edit", async ctx =>
{
Console.WriteLine($"Post-edit hook: {ctx.Function.Name}");
});
hooks.OnPromptRendering(async ctx =>
{
Console.WriteLine("Prompt is about to render...");
});
})
.Build();
using JD.SemanticKernel.Extensions.Plugins;
var kernel = Kernel.CreateBuilder()
.AddOpenAIChatCompletion("gpt-4o", apiKey)
.UsePlugins("./my-plugin/") // Single plugin directory
.UseAllPlugins("./plugins/") // All plugins in directory
.Build();
Plugin directories follow the .claude-plugin/ convention:
my-plugin/
├── .claude-plugin/
│ └── plugin.json # Manifest
├── skills/
│ └── reviewer/SKILL.md # Skills
├── hooks/
│ └── hooks.json # Hooks
└── .mcp.json # MCP servers (future)
using JD.SemanticKernel.Extensions;
var kernel = Kernel.CreateBuilder()
.AddOpenAIChatCompletion("gpt-4o", apiKey)
.AddClaudeCodeSkills("./skills/")
.AddClaudeCodePlugin("./my-plugin/")
.AddClaudeCodeHooks(hooks => hooks.OnFunctionInvoking(".*", _ => Task.CompletedTask))
.Build();
Automatically compress chat history when it grows too large, preserving key context while staying within token limits.
using JD.SemanticKernel.Extensions.Compaction;
var kernel = Kernel.CreateBuilder()
.AddOpenAIChatCompletion("gpt-4o", apiKey)
.Build();
// Register compaction as transparent middleware
kernel.Services.AddCompaction(options =>
{
options.TriggerMode = CompactionTriggerMode.ContextPercentage;
options.Threshold = 0.70; // Compact at 70% of context window
options.MaxContextWindowTokens = 128_000; // Model's context limit
options.PreserveLastMessages = 10; // Always keep recent messages
options.MinMessagesBeforeCompaction = 5; // Don't compact short conversations
});
Trigger modes:
TokenThreshold — Compact when estimated tokens exceed an absolute countContextPercentage — Compact when usage exceeds a percentage of the context windowToken estimation:
var tokens = TokenEstimator.EstimateTokens("Hello world"); // ~2 tokens
var historyTokens = TokenEstimator.EstimateTokens(chatHistory); // Includes overhead
Store, search, and retrieve context-relevant information with embedding-based similarity, MMR diversity reranking, and temporal decay scoring.
using JD.SemanticKernel.Extensions.Memory;
// Register with in-memory backend
kernel.Services.AddSemanticMemory(options =>
{
options.DefaultSearchOptions = new MemorySearchOptions
{
TopK = 10,
MinRelevanceScore = 0.7,
UseMmrReranking = true,
MmrLambda = 0.7, // Balance relevance vs diversity
UseTemporalDecay = true,
TemporalDecayRate = 0.01,
};
});
SQLite persistence:
using JD.SemanticKernel.Extensions.Memory.Sqlite;
kernel.Services.AddSqliteMemoryBackend("Data Source=memory.db");
Key capabilities:
InMemoryBackend (default), SqliteMemoryBackend, or implement IMemoryBackend| Claude Code Event | SK Filter |
|---|---|
PreToolUse |
IFunctionInvocationFilter.OnFunctionInvokingAsync |
PostToolUse |
IFunctionInvocationFilter.OnFunctionInvokedAsync |
UserPromptSubmit |
IPromptRenderFilter.OnPromptRenderingAsync |
Stop / SubagentStop |
IAutoFunctionInvocationFilter |
SessionStart / SessionEnd |
IExtensionEventBus (custom) |
PreCompact / Notification |
IExtensionEventBus (custom) |
| Project | Description |
|---|---|
| JD.SemanticKernel.Connectors.ClaudeCode | Claude Code authentication provider for SK |
| JD.SemanticKernel.Connectors.GitHubCopilot | GitHub Copilot authentication provider for SK |
dotnet restore
dotnet build
dotnet test
© JD
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on JD.SemanticKernel.Extensions.Mcp:
| Package | Downloads |
|---|---|
|
JD.AI.Core
Core library for JD.AI — agents, providers, sessions, tools, orchestration, and event bus. Shared by the TUI, Gateway, and channel adapters. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.106 | 46 | 6/16/2026 |
| 0.1.105 | 48 | 6/16/2026 |
| 0.1.104 | 42 | 6/16/2026 |
| 0.1.103 | 161 | 6/12/2026 |
| 0.1.102 | 60 | 6/12/2026 |
| 0.1.101 | 616 | 6/8/2026 |
| 0.1.100 | 94 | 6/8/2026 |
| 0.1.99 | 409 | 6/2/2026 |
| 0.1.98 | 101 | 6/2/2026 |
| 0.1.97 | 109 | 5/29/2026 |
| 0.1.96 | 95 | 5/29/2026 |
| 0.1.95 | 465 | 5/23/2026 |
| 0.1.94 | 106 | 5/23/2026 |
| 0.1.93 | 108 | 5/22/2026 |
| 0.1.92 | 102 | 5/22/2026 |
| 0.1.91 | 104 | 5/22/2026 |
| 0.1.90 | 109 | 5/15/2026 |
| 0.1.89 | 95 | 5/15/2026 |
| 0.1.88 | 99 | 5/15/2026 |
| 0.1.87 | 96 | 5/15/2026 |