fix(coding-agent,ai): resolve issues #33, #34, #35, #37

- show help instead of crashing on `omp setup` with no args
- show runtime-discovered MCP servers in `/mcp list`
- remove deprecated Anthropic model entries from models.json
- sort models by recency in model selector
This commit is contained in:
can1357
2026-02-12 18:12:31 +01:00
parent 7a3f63eb4a
commit 412ab9ea00
20 changed files with 151 additions and 160 deletions
+9
View File
@@ -343,6 +343,15 @@ export class MCPManager {
return Array.from(this.#connections.keys());
}
/**
* Get all known server names (connected, connecting, or discovered).
*/
getAllServerNames(): string[] {
return Array.from(
new Set([...this.#sources.keys(), ...this.#connections.keys(), ...this.#pendingConnections.keys()]),
);
}
/**
* Disconnect from a specific server.
*/