Skip to main content
Glama
getIdentifierNames.js369 B
import {TokenType as tt} from "../parser/tokenizer/types"; /** * Get all identifier names in the code, in order, including duplicates. */ export default function getIdentifierNames(code, tokens) { const names = []; for (const token of tokens) { if (token.type === tt.name) { names.push(code.slice(token.start, token.end)); } } return names; }

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/MatheusgVentura/Project-One'

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