Skip to main content
Glama

Webpage MCP Server

by brian-bfz
quick_test.py1.27 kB
#!/usr/bin/env python3 """Quick test to see browser agent status""" import asyncio from agents.action_generation import action_agent, input_agent, task_agent, State from agents.browser_loop import browser_loop async def main(): print("Starting quick test...") # Minimal state state = State( action_description="search for a query on Google", website_url="https://google.com" ) print("1. action_agent...") state = await action_agent(state) print(f" ✓ {state.function_metadata.function_name}") print("2. input_agent...") state = await input_agent(state) # Limit to just 1 test input state.test_inputs = [state.test_inputs[0]] print(f" ✓ {len(state.test_inputs)} inputs") print("3. task_agent...") state = await task_agent(state) print(f" ✓ task created") print("4. browser_loop...") try: state = await asyncio.wait_for(browser_loop(state), timeout=180) print(f"\n✓ RESULT: {state.result}") print(f" Test results: {state.test_results}") except asyncio.TimeoutError: print("\n✗ Browser loop timed out after 3 minutes") except Exception as e: print(f"\n✗ Error: {e}") if __name__ == "__main__": asyncio.run(main())

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/brian-bfz/fireworks2'

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