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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,12 @@ propose an enhancement. Bug reports should have a reproducer in the form of a co
35
35
sample or a repository attached that the maintainers or contributors can work with to
36
36
address the problem.
37
37
38
+
## AI agents
39
+
40
+
**We accept contributions created with the help of AI coding agents, but they must be carefully reviewed by a human who remains accountable for the quality of the contribution.**
41
+
These can be issues or pull requests. For issues, please ensure you describe your particular use-case, and not general considerations found by an AI agent.
42
+
Contributions submitted by GitHub accounts controlled by autonomous AI bots are forbidden.
Copy file name to clipboardExpand all lines: docs/server.md
+96Lines changed: 96 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -441,6 +441,102 @@ var syncToolSpecification = SyncToolSpecification.builder()
441
441
442
442
`ImageContent.builder(data, mimeType)` and `AudioContent.builder(data, mimeType)` both take base64-encoded binary data. `EmbeddedResource.builder(resourceContents)` wraps either a `TextResourceContents` (for text data) or a `BlobResourceContents` (for base64-encoded binary data) — see [Reading Binary Resources](#reading-binary-resources) for the `BlobResourceContents` shape.
443
443
444
+
### Filtering the Tool Listing per Request
445
+
446
+
By default every registered tool is advertised to every caller. Over an HTTP transport you can
447
+
vary the `tools/list` response per request — to hide tools the caller is not authorized to see,
448
+
or to trim a large catalog down to a relevant subset — by registering one or more tool filters.
449
+
450
+
The filter receives the `McpTransportContext` extracted from the current request, so it can key
451
+
on HTTP headers, a token, a resolved principal, or anything else your
Copy file name to clipboardExpand all lines: mcp-core/src/main/java/io/modelcontextprotocol/client/transport/customizer/McpAsyncHttpClientRequestCustomizer.java
0 commit comments