Skip to content

Add model context protocol#5

Merged
fuseraft merged 1 commit intomainfrom
feature/mcp
Mar 25, 2026
Merged

Add model context protocol#5
fuseraft merged 1 commit intomainfrom
feature/mcp

Conversation

@fuseraft
Copy link
Copy Markdown
Owner

Agents can now consume tools from any MCP server alongside built-in plugins. Servers are connected at session startup and torn down cleanly when the session ends.

  • McpServerConfig model: stdio (Command/Args/Env/WorkingDir) and http (Url) transports
  • OrchestrationConfig: new McpServers list
  • McpSessionManager (IAsyncDisposable): connects servers, registers their tools as KernelPlugin via McpClientTool.AsKernelFunction()
  • PluginRegistry: RegisterKernelPlugin / TryGetKernelPlugin for pre-built KernelPlugin entries (MCP or custom)
  • AgentFactory: checks TryGetKernelPlugin before TryGet so MCP tools resolve transparently by name
  • OrchestratorBuilder.Build → BuildAsync: initialises McpSessionManager before constructing agents
  • RunCommand: await using var _ = mcpManager to guarantee disposal on all exit paths
  • PluginsCommand: fuseraft plugins lists MCP server tools with an "MCP" type label
  • README: new MCP section with config example and field reference

@fuseraft fuseraft merged commit 07114c5 into main Mar 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant