Fix bug where always allow wasn't showing up for MCP tools

This commit is contained in:
Matt Rubens
2025-01-25 23:44:18 -05:00
parent 3b2424965c
commit d052bebed6
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, isLast,
isStreaming, isStreaming,
}: ChatRowContentProps) => { }: ChatRowContentProps) => {
const { mcpServers } = useExtensionState() const { mcpServers, alwaysAllowMcp } = useExtensionState()
const [cost, apiReqCancelReason, apiReqStreamingFailedMessage] = useMemo(() => { const [cost, apiReqCancelReason, apiReqStreamingFailedMessage] = useMemo(() => {
if (message.text != null && message.say === "api_req_started") { if (message.text != null && message.say === "api_req_started") {
const info: ClineApiReqInfo = JSON.parse(message.text) const info: ClineApiReqInfo = JSON.parse(message.text)
@@ -871,6 +871,7 @@ export const ChatRowContent = ({
)?.alwaysAllow || false, )?.alwaysAllow || false,
}} }}
serverName={useMcpServer.serverName} serverName={useMcpServer.serverName}
alwaysAllowMcp={alwaysAllowMcp}
/> />
</div> </div>
{useMcpServer.arguments && useMcpServer.arguments !== "{}" && ( {useMcpServer.arguments && useMcpServer.arguments !== "{}" && (