Merge pull request #567 from RooVetGit/fix_mcp_chat_checkboxes

Fix bug where always allow wasn't showing up for MCP tools
This commit is contained in:
Matt Rubens
2025-01-25 23:53:57 -05:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"roo-cline": patch
---
Fix bug where always allow wasn't showing up for MCP tools

View File

@@ -78,7 +78,7 @@ export const ChatRowContent = ({
isLast,
isStreaming,
}: ChatRowContentProps) => {
const { mcpServers } = useExtensionState()
const { mcpServers, alwaysAllowMcp } = useExtensionState()
const [cost, apiReqCancelReason, apiReqStreamingFailedMessage] = useMemo(() => {
if (message.text != null && message.say === "api_req_started") {
const info: ClineApiReqInfo = JSON.parse(message.text)
@@ -871,6 +871,7 @@ export const ChatRowContent = ({
)?.alwaysAllow || false,
}}
serverName={useMcpServer.serverName}
alwaysAllowMcp={alwaysAllowMcp}
/>
</div>
{useMcpServer.arguments && useMcpServer.arguments !== "{}" && (