Implement VS Code native MCP event system for automatic tool refreshing

- Added HumanAgentMcpProvider class with onDidChangeMcpServerDefinitions event
- Registered MCP provider with VS Code lm.registerMcpServerDefinitionProvider
- Added mcpServerDefinitionProviders contribution point to package.json
- Implemented startup event firing when override files exist
- Fixed session name loading timing by moving after server startup with retry
- Chat webview now fires MCP events when override files are reloaded
- VS Code Configure Tools will now automatically refresh tool descriptions
This commit is contained in:
B Harper
2025-10-25 11:29:05 +11:00
parent 59be50e9d9
commit d846f0895b
10 changed files with 823 additions and 128 deletions
+6
View File
@@ -108,6 +108,12 @@
}
]
},
"mcpServerDefinitionProviders": [
{
"id": "humanagent-mcp.server",
"label": "HumanAgent MCP Server"
}
],
"configuration": {
"title": "HumanAgent MCP",
"properties": {