新增: u-claw 集成

This commit is contained in:
lxy
2026-10-05 14:59:11 +08:00
parent d4d3a8deaf
commit 7c76ee6a60
21 changed files with 835 additions and 4 deletions
+4
View File
@@ -1,4 +1,5 @@
//! 工具暴露层 — 从 df-storage Repo 复用 CRUD,转 MCP Tool schema
//! 工具暴露层 — 从 df-storage Repo 复用 CRUD,转 MCP Tool schema
//!
//! 不重复实现数据层逻辑,只做:① 工具元数据(name/description/inputSchema)声明;
//! ② 工具调用 → df-storage Repo 方法 → 序列化为 MCP CallToolResult。
@@ -379,6 +380,7 @@ fn create_project(ctx: &Ctx, args: Value) -> BoxFuture<'static, CallToolResult>
idea_id: None,
path: None,
stack: None,
archived: false,
created_at: now.clone(),
updated_at: now,
};
@@ -434,6 +436,7 @@ fn update_project(ctx: &Ctx, args: Value) -> BoxFuture<'static, CallToolResult>
idea_id: existing.idea_id,
path: existing.path,
stack: existing.stack,
archived: existing.archived,
created_at: existing.created_at,
updated_at: now,
};
@@ -1263,6 +1266,7 @@ mod tests {
idea_id: None,
path: None,
stack: None,
archived: false,
created_at: now.clone(),
updated_at: now,
};