ZIm/crates/context_server/src
Peter Tripp a713c66a9d
Redact command environment variables from log output (#32985)
Before/After (linebreaks added for readability)
```log 
# before
INFO  [project::context_server_store::extension]
loaded command for context server mcp-server-github:
Command { 
  command: "/Users/peter/Library/Application Support/Zed/extensions/work/mcp-server-github/github-mcp-server-v0.5.0/github-mcp-server", 
  args: ["stdio"], 
  env: [("GITHUB_PERSONAL_ACCESS_TOKEN", "gho_WOOOOOOOOOOOOOOO")] 
}

#after
INFO  [project::context_server_store::extension]
loaded command for context server mcp-server-github:
Command {
  command: "/Users/peter/Library/Application Support/Zed/extensions/work/mcp-server-github/github-mcp-server-v0.5.0/github-mcp-server",
  args: ["stdio"],
  env: [("GITHUB_PERSONAL_ACCESS_TOKEN", "[REDACTED]")]
}
```

Release Notes:

- Redact sensitive environment variables from MCP logs
2025-06-21 11:19:23 -04:00
..
transport Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
client.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
context_server.rs Redact command environment variables from log output (#32985) 2025-06-21 11:19:23 -04:00
protocol.rs context_server: Make notifications type safe (#32396) 2025-06-09 15:11:01 +00:00
test.rs context_server: Make notifications type safe (#32396) 2025-06-09 15:11:01 +00:00
transport.rs context_server: Abstract server transport (#24528) 2025-02-26 17:19:19 +00:00
types.rs context_server: Make notifications type safe (#32396) 2025-06-09 15:11:01 +00:00