mirror of
https://github.com/PawanOsman/ChatGPT.git
synced 2026-07-18 08:05:57 +02:00
Update CHANGELOG for version 0.0.2 and implement workspace-specific conversation storage
- Added per-workspace conversations with automatic migration from global conversations. - Implemented auto-loading of GGUF models with a loading card in chat. - Enhanced llama.cpp server to use random free ports with retry on bind failure. - Improved composer dropdown positioning and shared model selection across composers. - Fixed production error related to missing '@huggingface/hub' package. - Removed MCP tool marketplace. - Updated version in package.json to 0.0.2.
This commit is contained in:
@@ -295,33 +295,3 @@ export class McpManager {
|
||||
}
|
||||
|
||||
export const mcpManager = new McpManager();
|
||||
|
||||
/** A server entry from the official MCP registry (registry.modelcontextprotocol.io). */
|
||||
export interface RegistryServer {
|
||||
name: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
version?: string;
|
||||
packages?: {
|
||||
registryType?: string;
|
||||
identifier?: string;
|
||||
version?: string;
|
||||
runtimeHint?: string;
|
||||
transport?: { type?: string };
|
||||
runtimeArguments?: { type?: string; name?: string; value?: string }[];
|
||||
packageArguments?: { type?: string; name?: string; value?: string }[];
|
||||
environmentVariables?: { name?: string; description?: string; isRequired?: boolean; isSecret?: boolean }[];
|
||||
}[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Search the official MCP registry. Runs in the extension host (not the webview)
|
||||
* so it isn't blocked by the webview CSP. Empty query returns a default listing.
|
||||
*/
|
||||
export async function searchMcpRegistry(query: string, limit = 30): Promise<RegistryServer[]> {
|
||||
const url = `https://registry.modelcontextprotocol.io/v0.1/servers?limit=${limit}${query.trim() ? `&search=${encodeURIComponent(query.trim())}` : ""}`;
|
||||
const r = await fetch(url);
|
||||
if (!r.ok) throw new Error(`registry ${r.status}`);
|
||||
const data = (await r.json()) as { servers?: { server: RegistryServer }[] };
|
||||
return (data.servers ?? []).map((s) => s.server);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user