Skip to main content
Glama

AutoDev Codebase MCP Server

by anrgct
test-embedding.tsโ€ข948 B
#!/usr/bin/env node /** * Test script to check if embedding functionality works */ import { CodeIndexOllamaEmbedder } from '../code-index/embedders/ollama' async function main() { console.log('๐Ÿงช Testing Ollama embedding...') try { const embedder = new CodeIndexOllamaEmbedder({ ollamaBaseUrl: 'http://localhost:11434', ollamaModelId: 'nomic-embed-text' }) console.log('โœ… Embedder created') const texts = ['Hello world', 'This is a test'] const response = await embedder.createEmbeddings(texts) console.log('โœ… Embedding successful') console.log('Number of embeddings:', response.embeddings.length) console.log('First embedding dimensions:', response.embeddings[0].length) } catch (error) { console.error('โŒ Embedding test failed:', error) } } // Run the test if (require.main === module) { main().catch(console.error) } export { main as testEmbedding }

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/anrgct/autodev-codebase'

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