agent: Rework context server settings (#32793)

This changes the way context servers are organised. We now store a
`source` which indicates if the MCP server is configured manually or
managed by an extension.

Release Notes:

- N/A

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
This commit is contained in:
Bennet Bo Fenner 2025-06-16 17:31:31 +02:00 committed by GitHub
parent c35f22dde0
commit d7db4d4e0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 639 additions and 197 deletions

View file

@ -41,12 +41,12 @@ You can connect them by adding their commands directly to your `settings.json`,
{
"context_servers": {
"some-context-server": {
"source": "custom",
"command": {
"path": "some-command",
"args": ["arg-1", "arg-2"],
"env": {}
},
"settings": {}
}
}
}
}