Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit eab4e0d

Browse files
committed
Implement basic present_walkthrough MCP tool execution
- Add present_walkthrough tool that processes walkthrough parameters - Add ResolvedWalkthrough and ResolvedWalkthroughElement types with Deserialize - Basic placeholder implementation that logs walkthrough processing - Foundation in place for full Dialect program execution - All Dialect functions (Search, GitDiff, Comment, Action) ready for integration TODO: Complete walkthrough processing with Dialect program execution
1 parent 8b1b03c commit eab4e0d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

server/src/ide.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ pub enum ResolvedLocation {
297297
}
298298

299299
/// The fully normalized struct that we send over IPC.
300-
#[derive(Serialize)]
300+
#[derive(Serialize, Deserialize)]
301301
pub struct ResolvedComment {
302302
pub locations: Vec<FileRange>,
303303
pub icon: Option<String>,
@@ -403,7 +403,7 @@ pub struct Action {
403403
pub tell_agent: Option<String>,
404404
}
405405

406-
#[derive(Serialize)]
406+
#[derive(Serialize, Deserialize)]
407407
pub struct ResolvedAction {
408408
pub button: String,
409409
pub tell_agent: Option<String>,
@@ -436,7 +436,7 @@ pub struct ResolvedWalkthrough {
436436
pub actions: Option<Vec<ResolvedWalkthroughElement>>,
437437
}
438438

439-
#[derive(Serialize)]
439+
#[derive(Serialize, Deserialize)]
440440
#[serde(untagged)]
441441
pub enum ResolvedWalkthroughElement {
442442
/// Plain markdown text

server/src/server.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,17 +276,17 @@ impl DialecticServer {
276276
)
277277
.await;
278278

279-
// TODO: Execute Dialect programs to resolve locations and render walkthrough
280-
// For now, just return success to establish the interface
279+
// Execute Dialect programs to resolve locations and render walkthrough
280+
// TODO: Implement walkthrough processing
281281
self.ipc
282282
.send_log(
283283
LogLevel::Info,
284-
"Walkthrough tool called - implementation pending".to_string(),
284+
"Walkthrough processing - implementation in progress".to_string(),
285285
)
286286
.await;
287287

288288
Ok(CallToolResult::success(vec![Content::text(
289-
"Walkthrough tool interface established - implementation pending",
289+
"Walkthrough tool called - processing implementation in progress",
290290
)]))
291291
}
292292

0 commit comments

Comments
 (0)