codedthemes-cli 0.1.5__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codedthemes-cli
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: CLI tool for Code Theme and Integration
5
5
  Author: codedthemes
6
6
  Requires-Python: >=3.10
@@ -66,6 +66,7 @@ def handle_login(server_url: str = None):
66
66
  })
67
67
 
68
68
  print("✔ Login successful.")
69
+ print("\n🚀 Next Step: Run 'codedthemes init' to initialize your repository and sync it with the cloud.")
69
70
  except Exception as e:
70
71
  err_msg = str(e)
71
72
  if "timed out" in err_msg.lower():
@@ -60,14 +60,20 @@ class MCPClient:
60
60
 
61
61
  def call(self, tool_name: str, payload: dict):
62
62
  """
63
- Calls a remote MCP tool.
63
+ Calls a remote MCP tool or the login endpoint.
64
64
  """
65
65
  headers = {}
66
66
  if self.token:
67
67
  headers["Authorization"] = f"Bearer {self.token}"
68
68
 
69
+ # Login uses a dedicated endpoint, not the tools bridge
70
+ if tool_name == "login":
71
+ url = f"{self.server_url}/auth/login"
72
+ else:
73
+ url = f"{self.server_url}/tools/{tool_name}"
74
+
69
75
  response = requests.post(
70
- f"{self.server_url}/tools/{tool_name}",
76
+ url,
71
77
  json=payload,
72
78
  headers=headers,
73
79
  timeout=300
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codedthemes-cli
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: CLI tool for Code Theme and Integration
5
5
  Author: codedthemes
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "codedthemes-cli"
7
- version = "0.1.5"
7
+ version = "0.1.7"
8
8
  description = "CLI tool for Code Theme and Integration"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"