Skip to main content
Glama

3D-MCP

by team-plask
diff.ts955 B
function parseExistingPythonFunctions( fileContent: string ): Set<string> { const functionNames = new Set<string>(); // Basic pattern: "def <name>(params: Dict[str, Any]) -> Dict[str, Any]:" const functionRegex = /\bdef\s+(\w+)\s*\(/g; let match; while ( (match = functionRegex.exec(fileContent)) !== null ) { match[1] && functionNames.add(match[1]); } return functionNames; } function parseExistingUnrealFunctions( fileContent: string ): Set<string> { const functionNames = new Set<string>(); // We'll look for lines like: "TSharedPtr<FJsonObject> SomeFunc(const TSharedPtr<FJsonObject>& Params)" or UFUNCTION lines const functionRegex = /TSharedPtr<FJsonObject>\s+(\w+)\s*\(/g; let match; while ( (match = functionRegex.exec(fileContent)) !== null ) { match[1] && functionNames.add(match[1]); } return functionNames; } export { parseExistingPythonFunctions, parseExistingUnrealFunctions, };

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/team-plask/3d-mcp'

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