12 lines
550 B
Python
12 lines
550 B
Python
import sys
|
|
|
|
tools_path = r"C:\Users\reazul.ashraf\workspace\rust\mcp-memory\server\src\tools.rs"
|
|
with open(tools_path, "r", encoding="utf-8") as f:
|
|
content = f.read()
|
|
|
|
content = content.replace("use schemars::JsonSchema;\nuse serde::{Deserialize, Serialize};\n\n#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]\npub struct QueryGraphPathTool", "#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]\npub struct QueryGraphPathTool")
|
|
|
|
with open(tools_path, "w", encoding="utf-8") as f:
|
|
f.write(content)
|
|
print("Fixed tools.rs")
|