ZIm/crates/context_server/src
Bennet Bo Fenner 9cb5ffac25
context_store: Refactor state management (#29910)
Because we instantiated `ContextServerManager` both in `agent` and
`assistant-context-editor`, and these two entities track the running MCP
servers separately, we were effectively running every MCP server twice.

This PR moves the `ContextServerManager` into the project crate (now
called `ContextServerStore`). The store can be accessed via a project
instance. This ensures that we only instantiate one `ContextServerStore`
per project.

Also, this PR adds a bunch of tests to ensure that the
`ContextServerStore` behaves correctly (Previously there were none).

Closes #28714
Closes #29530

Release Notes:

- N/A
2025-05-05 21:36:12 +02: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 context_store: Refactor state management (#29910) 2025-05-05 21:36:12 +02:00
context_server.rs context_store: Refactor state management (#29910) 2025-05-05 21:36:12 +02:00
protocol.rs context_store: Refactor state management (#29910) 2025-05-05 21:36:12 +02:00
transport.rs context_server: Abstract server transport (#24528) 2025-02-26 17:19:19 +00:00
types.rs context_store: Refactor state management (#29910) 2025-05-05 21:36:12 +02:00