mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-11 21:53:20 +08:00
Introduce support for Model Context Protocol (MCP) servers in the discourse-ai plugin, allowing AI agents to connect to external tool servers via the MCP standard. Key additions: - AiMcpServer model with CRUD admin UI, health tracking, and tool caching (hourly refresh via scheduled job) - MCP client (Streamable HTTP transport) with session management and tool invocation - Full OAuth 2.1 flow support (discovery, dynamic registration, authorization code grant, token refresh, and disconnect) - MCP tool type for AI agents that proxies tool calls to remote MCP servers at runtime - Agent editor updated to show combined tool/token counts from both local tools and MCP servers - Agent import/export includes MCP server associations - Admin secrets UI updated to surface MCP server usage - Comprehensive specs for models, controllers, client, tool registry, and OAuth flow |
||
|---|---|---|
| .. | ||
| ai-default-llm-selector-test.gjs | ||
| ai-indicator-wave-test.gjs | ||
| ai-mcp-server-editor-form-test.gjs | ||
| ai-search-discoveries-test.gjs | ||
| ai-tool-list-editor-test.gjs | ||
| ai-topic-gist-test.gjs | ||