Skip to main content
Glama

AutoDev Codebase MCP Server

by anrgct
inspectCpp.test.ts808 B
import { describe, it, expect } from "@jest/globals" import { inspectTreeStructure, testParseSourceCodeDefinitions } from "./helpers" import { cppQuery } from "../queries" import sampleCppContent from "./fixtures/sample-cpp" describe("C++ Tree-sitter Parser", () => { const testOptions = { language: "cpp", wasmFile: "tree-sitter-cpp.wasm", queryString: cppQuery, extKey: "cpp", } it("should properly parse structures", async () => { // First run inspectTreeStructure to get query structure output await inspectTreeStructure(sampleCppContent, "cpp") // Then run testParseSourceCodeDefinitions to get line numbers const result = await testParseSourceCodeDefinitions("test.cpp", sampleCppContent, testOptions) expect(result).toBeDefined() expect(result).toMatch(/\d+--\d+ \|/) }) })

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