kimi-code/packages
7Sageer 31f1b6824d
fix(agent-core-v2): mark MCP servers needs-auth when a tool call returns 401 (#3846)
* fix(agent-core-v2): mark MCP servers needs-auth when a tool call returns 401

* fix(agent-core-v2): cover retried MCP calls with unauthorized handling and recheck entry after close

* fix(agent-core-v2): bind MCP unauthorized reports to the originating client

* fix(agent-core-v2): invalidate rejected MCP OAuth tokens when entering needs-auth

* fix(agent-core-v2): preserve concurrent MCP OAuth grants and recheck entry after credential awaits

* fix(agent-core-v2): flip MCP servers to needs-auth before invalidating rejected tokens

* fix(agent-core-v2): compare-and-clear rejected MCP OAuth tokens and tolerate cleanup failures

* refactor(agent-core-v2): move rejected-grant handling into the MCP OAuth service

* fix(agent-core-v2): compare MCP OAuth grant age with the scheduler clock

* fix(agent-core-v2): reject future timestamps from the concurrent MCP grant window

* fix(agent-core-v2): distinguish concurrent MCP grants from freshly rejected ones

* fix(agent-core-v2): ignore application-level MCP errors in the unauthorized sniff

* test(agent-core-v2): trim MCP unauthorized tests to the core contract

* Delete .changeset/mcp-oauth-clear-if-current.md

Signed-off-by: 7Sageer <sag77r@hotmail.com>

---------

Signed-off-by: 7Sageer <sag77r@hotmail.com>
2026-09-17 11:12:20 +08:00
..
acp-server feat(agent-core-v2): add skill scopes and mark custom-theme as tui-only (#3843) 2026-09-16 19:14:22 +08:00
agent-core-v2 fix(agent-core-v2): mark MCP servers needs-auth when a tool call returns 401 (#3846) 2026-09-17 11:12:20 +08:00
kaos refactor: remove the legacy agent-core v1 package (#3542) 2026-09-07 11:17:51 +08:00
kap-server fix(kap-server): avoid duplicating steered prompt content (#3853) 2026-09-17 01:14:35 +08:00
klient feat(agent-core-v2): add skill scopes and mark custom-theme as tui-only (#3843) 2026-09-16 19:14:22 +08:00
kosong fix(kosong): declare optional media names on image and video parts (#3827) 2026-09-16 13:22:52 +08:00
migration-legacy feat(agent-core-v2): graduate AI session titles from experimental (#3749) 2026-09-14 11:53:19 +08:00
minidb fix(agent-core-v2): rebuild session and search indexes on storage failures, journal session-index freshness (#3694) 2026-09-10 23:23:08 +08:00
node-sdk perf(agent-core-v2): evict completed subagent scopes behind an LRU cache (#3778) 2026-09-15 20:33:24 +08:00
oauth fix(agent-core-v2): mark MCP servers needs-auth when a tool call returns 401 (#3846) 2026-09-17 11:12:20 +08:00
pi-tui ci: release packages (#3770) 2026-09-15 14:49:11 +08:00
remote-control feat(remote-control): cache rewritten tunnel responses with ETag validation (#3718) 2026-09-11 12:57:14 +08:00
telemetry fix(agent-core-v2): stop aborted-operation errors from escaping to process crashes (#3838) 2026-09-16 16:41:13 +08:00
transcript fix(kap-server): open a new turn for abort-reissued steers in cold transcripts (#3844) 2026-09-16 19:34:02 +08:00
tree-sitter-bash fix(tree-sitter-bash): recognize heredocs in character-level balanced scanning (#3503) 2026-09-03 15:28:11 +08:00