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
@@ -1,6 +1,13 @@
|
||||
set shell := ["pwsh", "-NoProfile", "-Command"]
|
||||
set shell := ["pwsh.exe", "-NoProfile", "-c"]
|
||||
|
||||
# Build and deploy everything across Windows and WSL
|
||||
default:
|
||||
@just --list
|
||||
|
||||
# Build everything across Windows and WSL
|
||||
build-all: build-win build-wsl
|
||||
Write-Host "Build complete across both OS boundaries." -ForegroundColor Green
|
||||
|
||||
# Deploy everything across Windows and WSL
|
||||
deploy-all: deploy-win deploy-wsl
|
||||
Write-Host "Deployment complete across both OS boundaries." -ForegroundColor Green
|
||||
|
||||
@@ -11,19 +18,36 @@ shutdown-server:
|
||||
Start-Sleep -Seconds 1
|
||||
-if (Get-Process mcp-memory-server, mcp-memory-stub, mcp-memory-win-nvim -ErrorAction SilentlyContinue) { Stop-Process -Name mcp-memory-server, mcp-memory-stub, mcp-memory-win-nvim -Force -ErrorAction SilentlyContinue }
|
||||
|
||||
# Build and deploy Windows-native binaries
|
||||
deploy-win: shutdown-server
|
||||
# Build Windows-native binaries
|
||||
build-win:
|
||||
Write-Host "Building Windows binaries..." -ForegroundColor Cyan
|
||||
cargo build --release -p mcp-memory-server -p mcp-memory-stub -p mcp-memory-win-nvim
|
||||
|
||||
# Deploy Windows-native binaries
|
||||
deploy-win: shutdown-server build-win
|
||||
Write-Host "Deploying Windows binaries..." -ForegroundColor Cyan
|
||||
Copy-Item -Force target\release\mcp-memory-stub.exe "C:\Users\reazul.ashraf\.local\bin\"; Copy-Item -Force target\release\mcp-memory-win-nvim.exe "C:\Users\reazul.ashraf\.local\bin\"
|
||||
Copy-Item -Force target\release\mcp-memory-server.exe "C:\Users\reazul.ashraf\.local\bin\"
|
||||
|
||||
# Build and deploy WSL-native binaries
|
||||
deploy-wsl:
|
||||
Write-Host "Building and deploying WSL binaries natively..." -ForegroundColor Cyan
|
||||
wsl.exe -d Ubuntu -e bash -c 'export PATH="$PATH:/home/riz/.cargo/bin" && cd /mnt/c/Users/reazul.ashraf/workspace/rust/mcp-memory && cargo build --release -p mcp-memory-stub -p mcp-memory-linux-nvim && cp target/release/mcp-memory-stub /home/riz/.local/bin/ && cp target/release/mcp-memory-linux-nvim /home/riz/.local/bin/'
|
||||
# Build WSL-native binaries
|
||||
build-wsl:
|
||||
Write-Host "Building WSL binaries natively..." -ForegroundColor Cyan
|
||||
wsl.exe -d Ubuntu -e bash -c 'export PATH="$PATH:/home/riz/.cargo/bin" && cd /mnt/c/Users/reazul.ashraf/workspace/rust/mcp-memory && cargo build --release -p mcp-memory-stub -p mcp-memory-linux-nvim'
|
||||
|
||||
# Deploy WSL-native binaries
|
||||
deploy-wsl: build-wsl
|
||||
Write-Host "Deploying WSL binaries natively..." -ForegroundColor Cyan
|
||||
wsl.exe -d Ubuntu -e bash -c 'export PATH="$PATH:/home/riz/.cargo/bin" && cd /mnt/c/Users/reazul.ashraf/workspace/rust/mcp-memory && cp target/release/mcp-memory-stub /home/riz/.local/bin/ && cp target/release/mcp-memory-linux-nvim /home/riz/.local/bin/'
|
||||
|
||||
# Run configuration tests to ensure eagerTools parity
|
||||
test-config:
|
||||
cargo test --release -p mcp-memory-server --test parity_test
|
||||
|
||||
# Run tests and generate code coverage report
|
||||
test-coverage:
|
||||
@Write-Host "Running tests with code coverage..." -ForegroundColor Cyan
|
||||
rustup run stable cargo llvm-cov --workspace
|
||||
|
||||
# Start the server directly
|
||||
startup-server:
|
||||
cargo run -p mcp-memory-server
|
||||
Reference in new issue
Block a user