-
-
+
+
{{ tool.name }}
@@ -188,7 +236,7 @@ const deleteTool = (id: number) => {
|
- {{ tool.provider || (tool.type === 'built-in' ? 'System' : 'Custom') }}
+ {{ tool.provider || (tool.type === 'built-in' ? 'System' : 'MCP Server') }}
|
@@ -196,17 +244,17 @@ const deleteTool = (id: number) => {
{{ tool.status }}
|
- {{ tool.createdAt }} |
+ {{ tool.created_at || '-' }} |
-
|
@@ -217,10 +265,10 @@ const deleteTool = (id: number) => {
-
+
No tools found
-
Click "New Tool" to add a tool
+
Click "Add MCP" to add a new MCP server
@@ -231,7 +279,7 @@ const deleteTool = (id: number) => {
Edit Tool
-
+
diff --git a/web/src/views/skill/useSkills.ts b/web/src/views/skill/useSkills.ts
index 47a9c67..623898e 100644
--- a/web/src/views/skill/useSkills.ts
+++ b/web/src/views/skill/useSkills.ts
@@ -46,10 +46,8 @@ export function useSkills() {
const newSkillForm = ref({
name: '',
- type: 'API',
- category: 'api',
- port: 3000,
description: '',
+ markdown: '',
})
// 分类选项
@@ -85,7 +83,7 @@ export function useSkills() {
// 打开创建弹窗
const openCreate = () => {
- newSkillForm.value = { name: '', type: 'API', category: 'api', port: 3000, description: '' }
+ newSkillForm.value = { name: '', description: '', markdown: '' }
isCreating.value = true
}
@@ -101,10 +99,10 @@ export function useSkills() {
id: newId,
name: newSkillForm.value.name,
description: newSkillForm.value.description,
- type: newSkillForm.value.type,
- category: newSkillForm.value.category,
+ type: 'Custom',
+ category: 'custom',
status: 'stopped',
- port: newSkillForm.value.port,
+ port: 3000,
createdAt: new Date().toISOString().split('T')[0],
tools: 0,
})