docs: update architecture and design docs with proxy reconnect and deployment strategies

This commit is contained in:
Riz Ashraf committed 2026-09-14 04:07:52 +01:00
1 parent a9a861abe1
commit 1da413568e
18 files changed
+2010 -722

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
use std::process::Command;
fn main() {
let git_hash = Command::new("git")
.args(&["rev-parse", "--short", "HEAD"])
.output()
.ok()
.and_then(|out| String::from_utf8(out.stdout).ok())
.unwrap_or_else(|| "unknown".to_string());
let git_date = Command::new("git")
.args(&["log", "-1", "--format=%cd", "--date=format:%Y.%m.%d"])
.output()
.ok()
.and_then(|out| String::from_utf8(out.stdout).ok())
.unwrap_or_else(|| "unknown".to_string());
let version = format!("{} ({} {})", env!("CARGO_PKG_VERSION"), git_date.trim(), git_hash.trim());
println!("cargo:rustc-env=APP_VERSION={}", version);
}
+9 -2
View File
@@ -31,6 +31,11 @@ fn init_logging(app_name: &str) -> Option<tracing_appender::non_blocking::Worker
#[tokio::main]
async fn main() {
if std::env::args().any(|a| a == "--version" || a == "-V") {
println!("mcp-memory-win-nvim {}", env!("APP_VERSION"));
return;
}
let _guard = init_logging("win-nvim");
tracing::info!("win-nvim MCP server started");
let mut stdin = tokio::io::BufReader::new(tokio::io::stdin());
@@ -48,7 +53,7 @@ async fn main() {
tokio::spawn(async move {
let id = msg.id.clone().unwrap_or(json!(null));
let start_time = std::time::Instant::now();
let _start_time = std::time::Instant::now();
match msg.method.as_str() {
"initialize" => {
@@ -57,7 +62,9 @@ async fn main() {
id,
result: Some(json!({
"protocolVersion": "2024-11-05",
"capabilities": {},
"capabilities": {
"tools": {}
},
"serverInfo": {
"name": "mcp-memory-win-nvim",
"version": "0.1.0"
-1
View File
@@ -1,7 +1,6 @@
use serde_json::{json, Value};
use std::io::{BufRead, BufReader, Read, Write};
use std::process::{Command, Stdio};
use std::time::Duration;
fn send_message(stdin: &mut std::process::ChildStdin, msg: Value) {
let s = serde_json::to_string(&msg).unwrap();