Skip to content

Commit 2971406

Browse files
committed
feat: add placeholder for MCP server configuration in form fields
1 parent db772b1 commit 2971406

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

ui/src/views/application/component/McpServersDialog.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
v-model="form.mcp_servers"
2121
:rows="6"
2222
type="textarea"
23+
:placeholder="mcpServerJson"
2324
/>
2425
</el-form-item>
2526
</el-form>
@@ -41,6 +42,14 @@ const emit = defineEmits(['refresh'])
4142
4243
const paramFormRef = ref()
4344
45+
const mcpServerJson = `{
46+
"math": {
47+
"url": "your_server",
48+
"transport": "sse"
49+
}
50+
}`
51+
52+
4453
const form = ref<any>({
4554
mcp_servers: '',
4655
mcp_enable: false

ui/src/workflow/nodes/mcp-node/index.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
v-model="form_data.mcp_servers"
1919
style="height: 150px"
2020
@submitDialog="submitDialog"
21+
:placeholder="mcpServerJson"
2122
/>
2223
</el-form-item>
2324
<el-form-item>
@@ -170,6 +171,13 @@ const props = defineProps<{ nodeModel: any }>()
170171
const dynamicsFormRef = ref()
171172
const loading = ref(false)
172173
174+
const mcpServerJson = `{
175+
"math": {
176+
"url": "your_server",
177+
"transport": "sse"
178+
}
179+
}`
180+
173181
const wheel = (e: any) => {
174182
if (e.ctrlKey === true) {
175183
e.preventDefault()

0 commit comments

Comments
 (0)