Skip to main content
Glama

AutoDev Codebase MCP Server

by anrgct
inspectRust.test.ts1.17 kB
import { describe, it, expect } from "@jest/globals" import { inspectTreeStructure, testParseSourceCodeDefinitions, debugLog } from "./helpers" import { rustQuery } from "../queries" import sampleRustContent from "./fixtures/sample-rust" describe("inspectRust", () => { const testOptions = { language: "rust", wasmFile: "tree-sitter-rust.wasm", queryString: rustQuery, extKey: "rs", } it("should inspect Rust tree structure", async () => { // This test only validates that inspectTreeStructure succeeds // It will output debug information when DEBUG=1 is set await inspectTreeStructure(sampleRustContent, "rust") }) it("should parse Rust definitions", async () => { // This test validates that parsing produces output with line numbers const result = await testParseSourceCodeDefinitions("test.rs", sampleRustContent, testOptions) // Only validate that we get some output with the expected format expect(result).toBeTruthy() // Check that the output contains line numbers in the format "N--M | content" expect(result).toMatch(/\d+--\d+ \|/) // Output for debugging purposes debugLog("Rust definitions parsing succeeded") }) })

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