mirror of
https://github.com/github/awesome-copilot.git
synced 2026-10-15 08:11:44 +00:00
docs(java-mcp): document tool name rules, URL elicitation, authorization, and Jackson 3 mapper
- Add the tool name rules of specification revision 2025-11-25 (SEP-986). The server builder rejects an incorrect name. addTool() does not check it. - Add URL mode elicitation with ElicitUrlRequest (SEP-1036). - State that the SDK has no authorization for remote servers. - State that the mcp artifact contains mcp-core and mcp-json-jackson3. Remove the Jackson 2 option.
This commit is contained in:
@@ -113,5 +113,6 @@ The starter serves the endpoint at `/mcp`.
|
||||
|
||||
- For WebFlux, declare a `WebFluxStreamableServerTransportProvider` bean in the same way. Its builder uses `messageEndpoint("/mcp")`, not `mcpEndpoint`.
|
||||
- Embedded Tomcat listens on all network interfaces. For a public host, add its name to `allowedHost`. Put authentication in front of the server.
|
||||
- The SDK has no authorization. For a remote server, add authorization in a servlet filter or with Spring Security.
|
||||
- `HttpServletStatelessServerTransport` makes a server without sessions. Use it with `McpServer.sync(transport)` when more than one replica must answer the requests. A stateless server cannot send requests to the client. Also set `securityValidator` on its builder.
|
||||
- For browser clients, add CORS to the servlet container. Allow the `Mcp-*` request headers. Expose the `Mcp-Session-Id` response header.
|
||||
|
||||
Reference in New Issue
Block a user