Skip to main content
Glama

SketchupMCP

test_eval_ruby.py598 B
import json from dataclasses import dataclass @dataclass class MockContext: request_id: int = 1 # Import the function we want to test from sketchup_mcp.server import eval_ruby # Test with a simple Ruby script test_code = ''' model = Sketchup.active_model entities = model.active_entities line = entities.add_line([0,0,0], [100,100,100]) puts "Created line with ID: #{line.entityID}" line.entityID ''' # Call the function result = eval_ruby(MockContext(), test_code) print(f"Result: {result}") # Parse the result parsed = json.loads(result) print(f"Parsed: {json.dumps(parsed, indent=2)}")

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/BearNetwork-BRNKC/SketchUp-MCP'

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