feat(mcp): implement Prompts capability, Resources, and clean up daemon architecture

This commit is contained in:
Riz Ashraf committed 2026-09-22 21:41:17 +01:00
1 parent 9b9b403ef2
commit 251757f8fc
29 files changed
+1276 -182

No files matched your search

-1
View File
@@ -63,7 +63,6 @@ async fn test_full_system_e2e_performance() {
// 1. Start Server
let _server = ChildGuard(
Command::new(&server_exe)
.arg("--daemon")
.env("MCP_PORT", test_port)
.env("RUST_LOG", "debug")
.env("MCP_MEMORY_STORE_DIR", temp_dir.to_str().unwrap())
+10 -3
View File
@@ -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]