WeKnora/internal/mcp
Captain 172d0a85ab
fix(mcp): pass embedded resources in tool results to the agent (#3766)
CallTool kept only text and image content from a tool result. A tool
can also return audio, a link to a resource, or a resource embedded in
the result, and GitHub's MCP server returns files that way:
get_file_contents answers with a short message and the file as an
embedded resource. The agent only ever saw the message.

Convert audio, embedded resources (text or blob) and resource links,
recording the resource URI. The agent now follows the reference to a
text resource with its text, and shows links and binary resources as
references. Base64 data of any kind, not only images, is redacted from
the logged content items.
2026-10-08 01:25:04 +08:00
..
client.go fix(mcp): pass embedded resources in tool results to the agent (#3766) 2026-10-08 01:25:04 +08:00
client_session_test.go fix(mcp): reconnect after the server forgets the session (#3765) 2026-10-08 01:24:57 +08:00
client_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
client_tools_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
errors.go refactor: Clean up code by removing unnecessary blank lines and improving comments for better readability and maintainability 2025-11-28 16:10:37 +08:00
manager.go fix(mcp): close MCP connections on shutdown without blocking exit 2026-09-25 18:22:14 +08:00
manager_closeall_test.go fix(mcp): close MCP connections on shutdown without blocking exit 2026-09-25 18:22:14 +08:00
manager_startup_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
oauth_lifecycle.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_lifecycle_test.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_manager.go fix(mcp): keep the client secret from dynamic client registration (#3763) 2026-10-08 01:24:51 +08:00
oauth_manager_test.go fix(mcp): keep the client secret from dynamic client registration (#3763) 2026-10-08 01:24:51 +08:00
oauth_principal_test.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_redirect_security_test.go fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
oauth_state.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_state_test.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_tokenstore.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
security.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
security_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
tool_content_test.go fix(mcp): pass embedded resources in tool results to the agent (#3766) 2026-10-08 01:25:04 +08:00
types.go fix(mcp): pass embedded resources in tool results to the agent (#3766) 2026-10-08 01:25:04 +08:00