From d779b5bd981aa6815b4cd50192e6e9c6133d9cdf Mon Sep 17 00:00:00 2001 From: ThomasTaroni Date: Sat, 21 Jun 2025 19:50:27 +0200 Subject: [PATCH] Update SMD server to fix API URL and clarify docstring Revised the API endpoint URL from smd.ch to swissdox.ch for accuracy and updated the function docstring to clarify the purpose of the article_id parameter. These changes improve clarity and ensure API requests are routed correctly. --- src/phoenix_technologies/smd/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phoenix_technologies/smd/server.py b/src/phoenix_technologies/smd/server.py index 22a0faa..f1db6c4 100644 --- a/src/phoenix_technologies/smd/server.py +++ b/src/phoenix_technologies/smd/server.py @@ -27,7 +27,7 @@ mcp = FastMCP("SMD Researcher", host="0.0.0.0", port=8000, timeout_keep_alive=72 @mcp.tool() async def smd_detail_article(article_id: str) -> dict: """ - Get the Details of an article found by the tool smd_research. + Get the Details of an article found by the tool smd_research based on the article_id. Use this tool after smd_research is executed to get all the details of the articles in the result. Args: @@ -36,7 +36,7 @@ async def smd_detail_article(article_id: str) -> dict: Returns: String containing the details of the article """ - url = f"https://api.smd.ch/api/documents/{article_id}" + url = f"https://api.swissdox.ch/api/documents/{article_id}" headers = { "authorization": f"Bearer {os.getenv('SWISSDOX_BEARER_TOKEN', '')}", "content-type": "application/json",