diff --git a/.changeset/stale-mirrors-unite.md b/.changeset/stale-mirrors-unite.md new file mode 100644 index 00000000..a70bf411 --- /dev/null +++ b/.changeset/stale-mirrors-unite.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +show mcp output in cline cli conversation diff --git a/cli/pkg/cli/task/manager.go b/cli/pkg/cli/task/manager.go index c56b32e1..0aa91cf2 100644 --- a/cli/pkg/cli/task/manager.go +++ b/cli/pkg/cli/task/manager.go @@ -984,6 +984,33 @@ func (m *Manager) processStateUpdate(stateUpdate *cline.State, coordinator *Stre coordinator.MarkProcessedInCurrentTurn(msgKey) } + case msg.Say == string(types.SayTypeMcpServerResponse): + msgKey := fmt.Sprintf("%d", msg.Timestamp) + if !coordinator.IsProcessedInCurrentTurn(msgKey) { + fmt.Println() + m.displayMessage(msg, false, false, i) + + coordinator.MarkProcessedInCurrentTurn(msgKey) + } + + case msg.Say == string(types.SayTypeMcpNotification): + msgKey := fmt.Sprintf("%d", msg.Timestamp) + if !coordinator.IsProcessedInCurrentTurn(msgKey) { + fmt.Println() + m.displayMessage(msg, false, false, i) + + coordinator.MarkProcessedInCurrentTurn(msgKey) + } + + case msg.Say == string(types.SayTypeUseMcpServer): + msgKey := fmt.Sprintf("%d", msg.Timestamp) + if !coordinator.IsProcessedInCurrentTurn(msgKey) { + fmt.Println() + m.displayMessage(msg, false, false, i) + + coordinator.MarkProcessedInCurrentTurn(msgKey) + } + case msg.Say == string(types.SayTypeCheckpointCreated): msgKey := fmt.Sprintf("%d", msg.Timestamp) if !coordinator.IsProcessedInCurrentTurn(msgKey) {