Skip to main content
Glama

AutoDev Codebase MCP Server

by anrgct
inspectEmbeddedTemplate.test.ts987 B
import { describe, it } from "@jest/globals" import { inspectTreeStructure, testParseSourceCodeDefinitions } from "./helpers" import { embeddedTemplateQuery } from "../queries" import sampleEmbeddedTemplateContent from "./fixtures/sample-embedded_template" describe("inspectEmbeddedTemplate", () => { const testOptions = { language: "embedded_template", wasmFile: "tree-sitter-embedded_template.wasm", queryString: embeddedTemplateQuery, extKey: "erb", // Match the file extension we're using } it("should inspect embedded template tree structure", async () => { const result = await inspectTreeStructure(sampleEmbeddedTemplateContent, "embedded_template") expect(result).toBeTruthy() }) it("should parse embedded template definitions", async () => { const result = await testParseSourceCodeDefinitions("test.erb", sampleEmbeddedTemplateContent, testOptions) expect(result).toBeTruthy() expect(result).toMatch(/\d+--\d+ \|/) // Verify line number format }) })

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