Skip to main content
Glama

CATA Bus MCP Server

test_stdio_quick.pyโ€ข3 kB
#!/usr/bin/env python3 """Quick STDIO test for Claude Desktop compatibility.""" import subprocess import sys import time def test_stdio_quick(): """Quick test of STDIO mode startup.""" print("๐Ÿ“Ÿ Quick STDIO Test") print("=" * 30) # Test CLI startup only (not full communication) print("\n1. Testing CLI startup...") try: proc = subprocess.Popen( ["catabus-mcp"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True ) # Just check if it starts without crashing time.sleep(3) if proc.poll() is None: print("โœ… CLI starts successfully (no crash)") print("โœ… Process running in STDIO mode") # Check stderr for any startup messages proc.terminate() try: stdout, stderr = proc.communicate(timeout=2) if stderr and "FastMCP" in stderr: print("โœ… FastMCP server initialized") elif stderr: print(f" Startup logs: {stderr[:150]}...") except subprocess.TimeoutExpired: proc.kill() else: stdout, stderr = proc.communicate() print("โŒ CLI process exited") print(f" Error: {stderr[:200]}") return False except FileNotFoundError: print("โŒ catabus-mcp command not found") return False except Exception as e: print(f"โŒ Error: {e}") return False # Test Python module startup print("\n2. Testing Python module startup...") try: proc = subprocess.Popen( [sys.executable, "-m", "catabus_mcp.server"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True ) time.sleep(3) if proc.poll() is None: print("โœ… Python module starts successfully") proc.terminate() try: proc.wait(timeout=2) except subprocess.TimeoutExpired: proc.kill() else: stdout, stderr = proc.communicate() if "port" in stderr and "8080" in stderr: print("โš ๏ธ Module tried to bind to port 8080 (HTTP mode)") print(" For STDIO, use the CLI command instead") else: print(f"โŒ Module failed: {stderr[:200]}") return False except Exception as e: print(f"โŒ Module test error: {e}") return False print("\n" + "=" * 30) print("โœ… STDIO MODE: READY") print(" Use 'catabus-mcp' command for Claude Desktop") print("=" * 30) return True if __name__ == "__main__": success = test_stdio_quick() sys.exit(0 if success else 1)

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/Pranav-Karra-3301/catabus-mcp'

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