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
|`tool-response-mime-type` |Optional response MIME type per tool name. For example, `spring.ai.mcp.server.tool-response-mime-type.generateImage=image/png` will associate the `image/png` MIME type with the `generateImage()` tool name |`-`
90
+
|`request-timeout` |Duration to wait for server responses before timing out requests. Applies to all requests made through the client, including tool calls, resource access, and prompt operations |`20 seconds`
91
+
|===
92
+
93
+
=== SSE Properties
94
+
95
+
All SSE properties are prefixed with `spring.ai.mcp.server`:
96
+
97
+
[options="header"]
98
+
|===
99
+
|Property |Description |Default
88
100
|`sse-message-endpoint` |Custom SSE message endpoint path for web transport to be used by the client to send messages |`/mcp/message`
89
101
|`sse-endpoint` |Custom SSE endpoint path for web transport |`/sse`
90
102
|`base-url` |Optional URL prefix. For example, `base-url=/api/v1` means that the client should access the SSE endpoint at `/api/v1` + `sse-endpoint` and the message endpoint is `/api/v1` + `sse-message-endpoint` |`-`
91
-
|`request-timeout` |Duration to wait for server responses before timing out requests. Applies to all requests made through the client, including tool calls, resource access, and prompt operations |`20 seconds`
Copy file name to clipboardExpand all lines: spring-ai-docs/src/main/antora/modules/ROOT/pages/api/mcp/mcp-streamable-http-server-boot-starter-docs.adoc
+28-14Lines changed: 28 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,9 @@ NOTE: They require xref:api/mcp/mcp-client-boot-starter-docs#_streamable_http_tr
36
36
37
37
== Configuration Properties
38
38
39
-
All properties are prefixed with `spring.ai.mcp.server.streamable-http`:
39
+
=== Common Properties
40
+
41
+
All common properties are prefixed with `spring.ai.mcp.server`:
40
42
41
43
[options="header"]
42
44
|===
@@ -55,19 +57,29 @@ All properties are prefixed with `spring.ai.mcp.server.streamable-http`:
The MCP Server supports four main capability types that can be individually enabled or disabled:
66
78
67
-
- **Tools** - Enable/disable tool capabilities with `spring.ai.mcp.server.streamable-http.capabilities.tool=true|false`
68
-
- **Resources** - Enable/disable resource capabilities with `spring.ai.mcp.server.streamable-http.capabilities.resource=true|false`
69
-
- **Prompts** - Enable/disable prompt capabilities with `spring.ai.mcp.server.streamable-http.capabilities.prompt=true|false`
70
-
- **Completions** - Enable/disable completion capabilities with `spring.ai.mcp.server.streamable-http.capabilities.completion=true|false`
79
+
- **Tools** - Enable/disable tool capabilities with `spring.ai.mcp.server.capabilities.tool=true|false`
80
+
- **Resources** - Enable/disable resource capabilities with `spring.ai.mcp.server.capabilities.resource=true|false`
81
+
- **Prompts** - Enable/disable prompt capabilities with `spring.ai.mcp.server.capabilities.prompt=true|false`
82
+
- **Completions** - Enable/disable completion capabilities with `spring.ai.mcp.server.capabilities.completion=true|false`
71
83
72
84
All capabilities are enabled by default. Disabling a capability will prevent the server from registering and exposing the corresponding features to clients.
73
85
@@ -307,15 +319,17 @@ NOTE: Currently, for streamable-http servers, the keep-alive mechanism is availa
307
319
spring:
308
320
ai:
309
321
mcp:
310
-
server:
322
+
server:
323
+
name: streamable-mcp-server
324
+
version: 1.0.0
325
+
type: SYNC
326
+
instructions: "This streamable server provides real-time notifications"
327
+
resource-change-notification: true
328
+
tool-change-notification: true
329
+
prompt-change-notification: true
311
330
streamable-http:
312
-
name: streamable-mcp-server
313
-
version: 1.0.0
314
-
type: SYNC
315
-
instructions: "This streamable server provides real-time notifications"
0 commit comments