Copilot
8f2e21d734
Fix: Synthesize handlers for empty tool/prompt/resource collections ( #865 )
...
* Initial plan
* Allow handlers for empty tool/prompt/resource collections
Changed condition from `IsEmpty: false` to `not null` check in McpServerImpl.cs for resources (line 298), prompts (line 459), and tools (line 547). This allows handlers to be synthesized even when collections are empty, enabling dynamic addition of items after initialization.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
2025-10-16 09:57:50 -04:00
..
AIFunctionMcpServerPrompt.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
AIFunctionMcpServerResource.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
AIFunctionMcpServerTool.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
DelegatingMcpServerPrompt.cs
Add ModelContextProtocol.Core package ( #428 )
2025-06-02 15:16:45 -07:00
DelegatingMcpServerResource.cs
Add ModelContextProtocol.Core package ( #428 )
2025-06-02 15:16:45 -07:00
DelegatingMcpServerTool.cs
Update content according to latest spec ( #513 )
2025-06-16 19:39:41 -04:00
DestinationBoundMcpServer.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
IMcpServer.cs
Decouple Handlers and Collections from protocol types ( #765 )
2025-09-24 09:42:03 -05:00
IMcpServerPrimitive.cs
Add middleware and authz support for server-side handlers ( #733 )
2025-09-10 10:07:45 -07:00
McpRequestFilter.cs
Add middleware and authz support for server-side handlers ( #733 )
2025-09-10 10:07:45 -07:00
McpRequestHandler.cs
Add middleware and authz support for server-side handlers ( #733 )
2025-09-10 10:07:45 -07:00
McpServer.cs
Restructure IMcpEndpoint, IMcpClient, and IMcpServer ( #723 )
2025-09-16 10:22:10 -07:00
McpServer.Methods.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
McpServerExtensions.cs
Make "Stateless" mode sessionless ( #760 )
2025-10-02 15:57:01 -07:00
McpServerFactory.cs
Decouple Handlers and Collections from protocol types ( #765 )
2025-09-24 09:42:03 -05:00
McpServerFilters.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
McpServerHandlers.cs
Decouple Handlers and Collections from protocol types ( #765 )
2025-09-24 09:42:03 -05:00
McpServerImpl.cs
Fix: Synthesize handlers for empty tool/prompt/resource collections ( #865 )
2025-10-16 09:57:50 -04:00
McpServerOptions.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
McpServerPrimitiveCollection.cs
Enable netfx testing. ( #588 )
2025-07-08 18:50:37 +03:00
McpServerPrompt.cs
Fix comments on McpServerTool/Prompt/Resource ( #866 )
2025-10-14 23:44:09 -04:00
McpServerPromptAttribute.cs
Implement SEP-973: Icons and metadata support for Implementations, Resources, Tools, and Prompts ( #802 )
2025-10-08 12:23:01 -07:00
McpServerPromptCreateOptions.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
McpServerPromptTypeAttribute.cs
Update content according to latest spec ( #513 )
2025-06-16 19:39:41 -04:00
McpServerResource.cs
Fix comments on McpServerTool/Prompt/Resource ( #866 )
2025-10-14 23:44:09 -04:00
McpServerResourceAttribute.cs
Implement SEP-973: Icons and metadata support for Implementations, Resources, Tools, and Prompts ( #802 )
2025-10-08 12:23:01 -07:00
McpServerResourceCollection.cs
Fix URI template derivation and lookup ( #530 )
2025-06-23 19:49:38 +03:00
McpServerResourceCreateOptions.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
McpServerResourceTypeAttribute.cs
Update content according to latest spec ( #513 )
2025-06-16 19:39:41 -04:00
McpServerTool.cs
Fix comments on McpServerTool/Prompt/Resource ( #866 )
2025-10-14 23:44:09 -04:00
McpServerToolAttribute.cs
Implement SEP-973: Icons and metadata support for Implementations, Resources, Tools, and Prompts ( #802 )
2025-10-08 12:23:01 -07:00
McpServerToolCreateOptions.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
McpServerToolTypeAttribute.cs
Update content according to latest spec ( #513 )
2025-06-16 19:39:41 -04:00
RequestContext.cs
Add net10.0 assets and run some fixers ( #875 )
2025-10-15 15:27:43 -04:00
RequestServiceProvider.cs
Restructure IMcpEndpoint, IMcpClient, and IMcpServer ( #723 )
2025-09-16 10:22:10 -07:00
SseResponseStreamTransport.cs
Fix support for sending server notifications with request-specific McpServer instances used outside their original scope. ( #832 )
2025-10-06 18:50:33 +03:00
SseWriter.cs
Fix support for sending server notifications with request-specific McpServer instances used outside their original scope. ( #832 )
2025-10-06 18:50:33 +03:00
StdioServerTransport.cs
Restructure IMcpEndpoint, IMcpClient, and IMcpServer ( #723 )
2025-09-16 10:22:10 -07:00
StreamableHttpPostTransport.cs
Fix support for sending server notifications with request-specific McpServer instances used outside their original scope. ( #832 )
2025-10-06 18:50:33 +03:00
StreamableHttpServerTransport.cs
Fix slow shutdown when a Streamable HTTP client is connected ( #843 )
2025-10-10 17:50:57 -07:00
StreamServerTransport.cs
Enable netfx testing. ( #588 )
2025-07-08 18:50:37 +03:00