We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bradleygolden/hexdocs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
sql_sandbox.ex•770 B
defmodule HexdocsMcp.SqlSandbox do
@moduledoc """
Setup for SQLite in-memory database for tests.
"""
alias HexdocsMcp.Migrations
alias HexdocsMcp.Repo
require Logger
@doc """
Create all tables needed for testing directly using shared migration SQL.
"""
def setup do
# Enable SQLite extensions for vector operations
{:ok, conn} = Exqlite.Basic.open(Repo.config()[:database])
:ok = Exqlite.Basic.enable_load_extension(conn)
Exqlite.Basic.load_extension(conn, SqliteVec.path())
Logger.debug("Setting up test database tables...")
# Use the shared migrations module to create tables
Enum.each(Migrations.create_embeddings_table(), fn sql -> Repo.query!(sql) end)
Migrations.update_embeddings_table()
:ok
end
end