Skip to content

MCP Gateway: avoid blocking list calls on startup - #298040

Merged
9 commits merged into
microsoft:mainfrom
RajeshKumar11:fix/mcp-gateway-nonblocking-297780-v2
Mar 4, 2026
Merged

9 commits merged into
microsoft:mainfrom
RajeshKumar11:fix/mcp-gateway-nonblocking-297780-v2

Conversation

@RajeshKumar11

Copy link
Copy Markdown
Contributor

Fixes #297780

Summary

  • Avoid blocking MCP gateway list calls (tools/list, resources/list, resources/templates/list) on slow server startup
  • Refresh servers in the background when cache state is Unknown/Outdated

Rationale

These list endpoints were awaiting server startup, causing large TTFT when the gateway is enabled. Returning cached data immediately and refreshing in the background restores the feature without the startup delay.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP Gateway performance needs improvement

4 participants