mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-26 23:34:47 +08:00
fix: mcp config styles (#320)
This commit is contained in:
@@ -138,7 +138,7 @@ export function AddMCPServerDialog({
|
|||||||
|
|
||||||
<main>
|
<main>
|
||||||
<Textarea
|
<Textarea
|
||||||
className="h-[360px]"
|
className="h-[360px] sm:max-w-[510px]"
|
||||||
placeholder={
|
placeholder={
|
||||||
'Example:\n\n{\n "mcpServers": {\n "My Server": {\n "command": "python",\n "args": [\n "-m", "mcp_server"\n ],\n "env": {\n "API_KEY": "YOUR_API_KEY"\n }\n }\n }\n}'
|
'Example:\n\n{\n "mcpServers": {\n "My Server": {\n "command": "python",\n "args": [\n "-m", "mcp_server"\n ],\n "env": {\n "API_KEY": "YOUR_API_KEY"\n }\n }\n }\n}'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ export const Link = ({
|
|||||||
if (call && call.name === "web_search" && call.result) {
|
if (call && call.name === "web_search" && call.result) {
|
||||||
const result = JSON.parse(call.result) as Array<{ url: string }>;
|
const result = JSON.parse(call.result) as Array<{ url: string }>;
|
||||||
result.forEach((r) => {
|
result.forEach((r) => {
|
||||||
|
// encodeURI is used to handle the case where the link contains chinese or other special characters
|
||||||
|
links.add(encodeURI(r.url));
|
||||||
links.add(r.url);
|
links.add(r.url);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user