From f91d7b18e934fb7239debdc2f4c867eacfa426f7 Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Sun, 7 Jun 2026 23:32:26 +0800 Subject: [PATCH] =?UTF-8?q?Update=20README=20tool=20descriptions:=20.txt?= =?UTF-8?q?=20=E2=86=92=20.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only description strings changed to tell AI the content is Markdown format (.md). The actual handler still reads/writes README.txt for Web UI compatibility. --- gns3server/api/routes/mcp/__init__.py | 6 +++--- gns3server/api/routes/mcp/projects.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gns3server/api/routes/mcp/__init__.py b/gns3server/api/routes/mcp/__init__.py index a52ff991d..7aae521d7 100644 --- a/gns3server/api/routes/mcp/__init__.py +++ b/gns3server/api/routes/mcp/__init__.py @@ -304,16 +304,16 @@ async def duplicate_project( async def get_project_readme( project_id: Annotated[str, Field(description="UUID of the project")], ) -> list[dict[str, Any]]: - """Get the content of a project's README.txt file — the project documentation (Markdown format).""" + """Get the content of a project's README.md file — the project documentation (Markdown format).""" return await asyncio.to_thread(_run_handler_sync, get_project_readme_handler, {"project_id": project_id}) @mcp.tool() async def update_project_readme( project_id: Annotated[str, Field(description="UUID of the project")], - content: Annotated[str, Field(description="Content to write to README.txt (Markdown format)")], + content: Annotated[str, Field(description="Content to write to README.md (Markdown format)")], ) -> list[dict[str, Any]]: - """Update or create a project's README.txt file — the project documentation (Markdown format).""" + """Update or create a project's README.md file — the project documentation (Markdown format).""" return await asyncio.to_thread(_run_handler_sync, update_project_readme_handler, {"project_id": project_id, "content": content}) diff --git a/gns3server/api/routes/mcp/projects.py b/gns3server/api/routes/mcp/projects.py index ebd514d51..bcf30d947 100644 --- a/gns3server/api/routes/mcp/projects.py +++ b/gns3server/api/routes/mcp/projects.py @@ -279,7 +279,7 @@ PROJECT_TOOLS = [ }, { "name": "get_project_readme", - "description": "Get the content of a project's README.txt file (project documentation, Markdown format)", + "description": "Get the content of a project's README.md file (project documentation, Markdown format)", "parameters": { "type": "object", "properties": { @@ -291,12 +291,12 @@ PROJECT_TOOLS = [ }, { "name": "update_project_readme", - "description": "Update or create a project's README.txt file (project documentation, Markdown format)", + "description": "Update or create a project's README.md file (project documentation, Markdown format)", "parameters": { "type": "object", "properties": { "project_id": {"type": "string", "description": "Project UUID"}, - "content": {"type": "string", "description": "Content to write to README.txt (Markdown format)"}, + "content": {"type": "string", "description": "Content to write to README.md (Markdown format)"}, }, "required": ["project_id", "content"], },