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.
This commit is contained in:
parent
4793aca10e
commit
d779b5bd98
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue