This is an automated email from the ASF dual-hosted git repository.
liuhongyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new e00f695e fix:mcp requestConfig json parse (#568)
e00f695e is described below
commit e00f695e34b21740de8a0507bce3aaea219e84b3
Author: renlu <[email protected]>
AuthorDate: Wed Feb 4 14:28:50 2026 +0800
fix:mcp requestConfig json parse (#568)
* fix:mcp requestConfig json parse
* fix: lint
---
src/routes/Plugin/McpServer/index.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/routes/Plugin/McpServer/index.js
b/src/routes/Plugin/McpServer/index.js
index 7f549f64..5725df25 100755
--- a/src/routes/Plugin/McpServer/index.js
+++ b/src/routes/Plugin/McpServer/index.js
@@ -1205,7 +1205,10 @@ export default class McpServer extends Component {
key: "requestConfig",
render: (text) => {
const handle = JSON.parse(text);
- const requestConfig = JSON.parse(handle?.requestConfig || "{}");
+ const requestConfig =
+ typeof handle?.requestConfig === "string"
+ ? JSON.parse(handle?.requestConfig || "{}")
+ : handle?.requestConfig || {};
return (
<Popover
content={