Skip to main content
Glama

MCP Codebase Insight

by tosin2013
#!/bin/bash # This script starts the MCP Qdrant server with SSE transport set -x source .venv/bin/activate # Set the PATH to include the local bin directory export PATH="$HOME/.local/bin:$PATH" # Define environment variables export COLLECTION_NAME="mcp-codebase-insight" export EMBEDDING_MODEL="sentence-transformers/all-MiniLM-L6-v2" export QDRANT_URL="${QDRANT_URL:-http://localhost:6333}" export QDRANT_API_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOiJtIiwiZXhwIjoxNzQ1MTAyNzQ3fQ.3gvK8M7dJxZkSpyzpJtTGVUhjyjgbYEhEvl2aG7JodM" # Define tool descriptions TOOL_STORE_DESCRIPTION="Store reusable code snippets and test results. 'information' contains a description. 'metadata' is a dictionary with a 'type' key: 'code' for code snippets, 'test_result' for test results. For 'code', 'metadata' includes a 'code' key with the code. For 'test_result', 'metadata' includes 'test_name', 'status' (pass/fail), and 'error_message'." TOOL_FIND_DESCRIPTION="Search for code snippets and test results. The 'query' parameter describes what you're looking for. Returned results will have a 'metadata' field with a 'type' key indicating 'code' or 'test_result'. Use this to find code or analyze test failures." # Default port for the SSE transport (can be overridden with PORT env var) PORT="${PORT:-8000}" # Determine transport type (default to sse if not specified) TRANSPORT="${TRANSPORT:-sse}" # Check if uvx and mcp-server-qdrant are installed if ! command -v uvx &> /dev/null; then echo "Error: uvx is not installed. Please install it with: pip install uvx" exit 1 fi if ! python -c "import importlib.util; print(importlib.util.find_spec('mcp_server_qdrant') is not None)" | grep -q "True"; then echo "Error: mcp-server-qdrant is not installed. Please install it with: pip install mcp-server-qdrant" exit 1 fi echo "Starting MCP Qdrant server with $TRANSPORT transport on port $PORT..." # Run the MCP Qdrant server with the specified transport if [ "$TRANSPORT" = "sse" ]; then # For SSE transport, we need to specify the port uvx mcp-server-qdrant --transport sse --port $PORT else # For other transports (e.g., stdio which is the default) uvx mcp-server-qdrant fi

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/tosin2013/mcp-codebase-insight'

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