feat(mcp): implement Prompts capability, Resources, and clean up daemon architecture
This commit is contained in:
1 parent
9b9b403ef2
commit
251757f8fc
29 files changed
+1276
-182
No files matched your search
@@ -2,10 +2,17 @@ use std::process::Stdio;
|
||||
use std::time::{Duration, Instant};
|
||||
use tokio::process::Command;
|
||||
|
||||
pub fn get_target_dir() -> std::path::PathBuf {
|
||||
let mut exe = std::env::current_exe().unwrap();
|
||||
exe.pop(); // remove test binary
|
||||
if exe.ends_with("deps") {
|
||||
exe.pop();
|
||||
}
|
||||
exe
|
||||
}
|
||||
|
||||
fn get_stub_exe() -> std::path::PathBuf {
|
||||
let manifest_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
let debug_dir = manifest_dir.parent().unwrap().join("target").join("debug");
|
||||
debug_dir.join(format!("mcp-memory-stub{}", std::env::consts::EXE_SUFFIX))
|
||||
get_target_dir().join(format!("mcp-memory-stub{}", std::env::consts::EXE_SUFFIX))
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in new issue
Block a user