get_web_url
Retrieve the web GUI URL for a given analysis ID to view results directly in the browser.
Instructions
Get the web GUI URL for a given analysis ID. Args: analysis_id: Analysis ID to get the web URL for. Returns: The web URL from Cyberbro API - Useful for the user to check the results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| analysis_id | Yes |
Implementation Reference
- src/mcp_cyberbro/tools/web.py:12-20 (handler)The handler function that implements the tool logic. Takes an analysis_id and returns a dict with the web URL constructed from config.cyberbro_url.
async def get_web_url(analysis_id: str) -> Any: """ Get the web GUI URL for a given analysis ID. Args: analysis_id: Analysis ID to get the web URL for. Returns: The web URL from Cyberbro API - Useful for the user to check the results. """ return {"web_url": f"{config.cyberbro_url}/results/{analysis_id}"} - src/mcp_cyberbro/tools/web.py:10-20 (registration)The registration function that uses @mcp.tool() decorator to register get_web_url as an MCP tool.
def register_web_tools(mcp: FastMCP, config: CyberbroConfig) -> None: @mcp.tool() async def get_web_url(analysis_id: str) -> Any: """ Get the web GUI URL for a given analysis ID. Args: analysis_id: Analysis ID to get the web URL for. Returns: The web URL from Cyberbro API - Useful for the user to check the results. """ return {"web_url": f"{config.cyberbro_url}/results/{analysis_id}"} - src/mcp_cyberbro/server.py:16-16 (registration)Registration call site: invoked in create_server() to register the web tools on the MCP server.
register_web_tools(mcp, config) - src/mcp_cyberbro/tools/web.py:7-7 (helper)CyberbroConfig provides the config object (cyberbro_url) used to build the web URL.
from mcp_cyberbro.utils.config import CyberbroConfig