We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tmonk/mcp-stata'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_capture.py•461 B
import stata_setup
stata_setup.config("/Applications/StataNow", "mp")
from pystata import stata
from sfi import Scalar
try:
stata.run("capture", echo=False)
print(f"RC after capture: {Scalar.getValue('c(rc)')}")
except Exception as e:
print(f"Error with capture: {e}")
try:
stata.run("capture query", echo=False)
print(f"RC after capture query: {Scalar.getValue('c(rc)')}")
except Exception as e:
print(f"Error with capture query: {e}")