Skip to main content
Glama

Chrome MCP Server

index.tsβ€’1.25 kB
import { initNativeHostListener } from './native-host'; import { initSemanticSimilarityListener, initializeSemanticEngineIfCached, } from './semantic-similarity'; import { initStorageManagerListener } from './storage-manager'; import { cleanupModelCache } from '@/utils/semantic-similarity-engine'; /** * Background script entry point * Initializes all background services and listeners */ export default defineBackground(() => { // Initialize core services initNativeHostListener(); initSemanticSimilarityListener(); initStorageManagerListener(); // Conditionally initialize semantic similarity engine if model cache exists initializeSemanticEngineIfCached() .then((initialized) => { if (initialized) { console.log('Background: Semantic similarity engine initialized from cache'); } else { console.log( 'Background: Semantic similarity engine initialization skipped (no cache found)', ); } }) .catch((error) => { console.warn('Background: Failed to conditionally initialize semantic engine:', error); }); // Initial cleanup on startup cleanupModelCache().catch((error) => { console.warn('Background: Initial cache cleanup failed:', error); }); });

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/haithemobeidi/mcp-chrome'

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