You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>All properties are under the <code>springdoc.ai.mcp</code> prefix. These properties require the <code>springdoc-openapi-starter-webmvc-mcp</code> or <code>springdoc-openapi-starter-webflux-mcp</code> dependency.</p>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>String</code>. Base URL for tool execution HTTP calls. If not set, defaults to <code>http://localhost:{server.port}</code>.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>Integer</code>. Timeout in seconds waiting for the OpenAPI spec at startup.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>List of Strings</code>. List of ant patterns for paths to exclude from MCP tool generation.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>Boolean</code>. When <code>true</code>, calling a mutating tool (POST/PUT/DELETE/PATCH) via MCP returns an approval-required response instead of executing the HTTP call.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock"><code>List of Strings</code>. Comma-separated list of HTTP methods considered safe (read-only). All other methods are treated as mutating.</p></td>
396
+
</tr>
397
+
</tbody>
398
+
</table>
399
+
<divclass="admonitionblock note">
400
+
<table>
401
+
<tr>
402
+
<tdclass="icon">
403
+
<iclass="fa icon-note" title="Note"></i>
404
+
</td>
405
+
<tdclass="content">
406
+
When MCP is enabled, <code>springdoc.pre-loading-enabled</code> is automatically forced to <code>true</code> by an environment post-processor, ensuring the OpenAPI specification is available at startup for tool registration.
<p><ahref="https://demos1.springdoc.org/demo-microservices/swagger-ui.html" target="_blank" rel="noopener">Demo Spring Boot 4 and Spring Cloud Gateway</a></p>
65
65
</li>
66
+
<li>
67
+
<p><ahref="https://demos1.springdoc.org/demo-spring-boot-mcp/mcp-ui/index.html" target="_blank" rel="noopener">Demo Spring Boot 4 with MCP Support</a></p>
0 commit comments