Skip to content

Commit e9c4e8f

Browse files
fix(provider-acp): recognise Kiro's @-scoped T3 MCP tool titles
Kiro titles T3 MCP calls "@t3-code/<tool>" with no _meta, so the title matcher missed them: html_render pages never showed and every T3 call was stored as a generic dynamic tool. Allow an optional leading "@" on the T3 title pattern; the known T3 tool inventory still gates the match. Fixes #28230 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent eff60ba commit e9c4e8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/provider-acp/src/server/runtimeModel.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,9 +1063,9 @@ function acpMcpFallbackInput(value: string | undefined): Record<string, unknown>
10631063
return undefined;
10641064
}
10651065

1066-
// Known T3 inventory gates matches, so server-name separators can stay loose.
1066+
// Known T3 inventory gates matches, so server-name separators can stay loose. Kiro titles "@t3-code/<tool>".
10671067
const T3_MCP_TITLE_CALL =
1068-
/^(?:mcp[-_]{1,2})?t3[-_ ]?code[-_.:/ ]{1,3}(?<tool>[A-Za-z0-9][A-Za-z0-9_.-]*)(?::.*)?$/i;
1068+
/^(?:@|mcp[-_]{1,2})?t3[-_ ]?code[-_.:/ ]{1,3}(?<tool>[A-Za-z0-9][A-Za-z0-9_.-]*)(?::.*)?$/i;
10691069

10701070
const T3_MCP_TITLE_SUFFIX_CALL =
10711071
/^(?<tool>[A-Za-z0-9][A-Za-z0-9_.-]*?)(?: \(t3[-_ ]?code MCP Server\)(?::|$)|[-_.]t3[-_ ]?code$)/i;

0 commit comments

Comments
 (0)