Skip to main content
Glama

Article Manager MCP Server

by joelmnz
reindex.ts•784 B
#!/usr/bin/env bun import { rebuildIndex, getIndexStats } from '../src/backend/services/vectorIndex'; console.log('Starting vector index rebuild...\n'); const SEMANTIC_SEARCH_ENABLED = process.env.SEMANTIC_SEARCH_ENABLED?.toLowerCase() === 'true'; if (!SEMANTIC_SEARCH_ENABLED) { console.error('Error: SEMANTIC_SEARCH_ENABLED is not set to true'); console.error('Please set SEMANTIC_SEARCH_ENABLED=true in your environment or .env file'); process.exit(1); } try { await rebuildIndex(); const stats = await getIndexStats(); console.log('\nIndex rebuild complete!'); console.log(`Total chunks: ${stats.totalChunks}`); console.log(`Total articles: ${stats.totalArticles}`); } catch (error) { console.error('Error rebuilding index:', error); process.exit(1); }

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/joelmnz/mcp-markdown-manager'

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