fix(protocol): expose MCP tool change events (#35373)
This commit is contained in:
parent
b8efb33cde
commit
bb3b6a2f65
4 changed files with 33 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ export const ServerDefinitions = Event.inventory(
|
|||
...TuiEvent.Definitions,
|
||||
...InstallationEvent.Definitions,
|
||||
...VcsEvent.Definitions,
|
||||
McpEvent.StatusChanged,
|
||||
...McpEvent.Definitions,
|
||||
// Shared transitional: V1 contracts the current TUI still consumes during
|
||||
// the migration (permission.asked/replied, question.asked, session.error).
|
||||
// Remove when the TUI moves to the current permission/question surfaces.
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ describe("public event manifest", () => {
|
|||
Agent.Event.Updated,
|
||||
])
|
||||
expect(EventManifest.Definitions).toContain(Agent.Event.Updated)
|
||||
expect(EventManifest.ServerDefinitions).toContain(McpEvent.ToolsChanged)
|
||||
expect(EventManifest.Definitions.filter((definition) => definition.type === "agent.updated")).toEqual([
|
||||
Agent.Event.Updated,
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue