Skip to main content
Glama

Qdrant Retrieve MCP Server

updateAppState.ts692 B
import type { AppState } from "./AppState"; import { currentAppState } from "./internal/currentAppState"; import { setAppState } from "./setAppState"; /** * Updates specific properties of the application state * * @param updates - Partial updates to apply to the application state * @returns The updated application state */ export function updateAppState(updates: Partial<AppState>): AppState { if (!currentAppState.appState) { throw new Error("Application state has not been initialized"); } // Create a new immutable state object with the updates const newState: AppState = { ...currentAppState.appState, ...updates, }; return setAppState(newState); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gergelyszerovay/mcp-server-qdrant-retrive'

If you have feedback or need assistance with the MCP directory API, please join our Discord server