From 463caec13bc21ffad83f6e95c1b7d6b8aa38c28c Mon Sep 17 00:00:00 2001 From: HumbleTurtle Date: Sat, 1 Aug 2026 03:53:02 -0300 Subject: [PATCH] Remove legacy CLI and MCP aliases --- resources/scripts/napseer_mcp_server.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/resources/scripts/napseer_mcp_server.py b/resources/scripts/napseer_mcp_server.py index 03278aa..3a166bc 100755 --- a/resources/scripts/napseer_mcp_server.py +++ b/resources/scripts/napseer_mcp_server.py @@ -475,7 +475,6 @@ PUBLIC_TOOLS = { "nap_gateway_vault_secret_rotate", "nap_gateway_restart", "nap_gateway_kill", - "nap_login", "nap_update_status", "nap_update_self", "nap_apropos", @@ -12014,8 +12013,8 @@ def raw_tools(): "inputSchema": {"type": "object", "properties": {}, "additionalProperties": False}, }, { - "name": "nap_login", - "description": "Renew the local bearer token with the stored refresh token. Legacy SSH enrollment is used only when no refresh token exists.", + "name": "nap_auth_refresh", + "description": "Repair authentication with the stored refresh credential. Normal refresh is automatic.", "inputSchema": { "type": "object", "properties": {}, @@ -13266,7 +13265,7 @@ TOOL_CATEGORIES = { "nap_agent_rm", "nap_agent_ln", ], - "project": ["nap_whoami", "nap_login", "nap_project_create", "nap_claim_account"], + "project": ["nap_whoami", "nap_project_create", "nap_claim_account"], "schedules": ["nap_crontab_register_key", "nap_crontab_put"], "gateway": [ "nap_gateway_status", @@ -13589,9 +13588,7 @@ CANONICAL_TOOL_NAMES = { # Old clients may still call the old names. They are deliberately absent from # tools/list and nap_apropos so new clients learn only the canonical surface. -COMPATIBILITY_TOOL_ALIASES = { - "nap_login": "nap_auth_refresh", -} +COMPATIBILITY_TOOL_ALIASES = {} HIDDEN_COMPATIBILITY_TOOL_NAMES = { "nap_bulk_read", @@ -14518,7 +14515,7 @@ def call_tool_impl(name, args): return gateway_terminal_restart(args) if name == "nap_gateway_kill": return gateway_terminal_kill(args) - if name in {"nap_auth_refresh", "nap_login"}: + if name == "nap_auth_refresh": return renew_auth() if name == "nap_update_status": return update_status()