fix: login error logging + E-Mail label (v0.1.2)
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "mcp-familywall"
|
name = "mcp-familywall"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "MCP server for Family Wall — read your family's lists and tasks via Claude"
|
description = "MCP server for Family Wall — read your family's lists and tasks via Claude"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = "0.1.1"
|
__version__ = "0.1.2"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ def setup() -> None:
|
|||||||
|
|
||||||
click.echo("mcp-familywall setup\n")
|
click.echo("mcp-familywall setup\n")
|
||||||
|
|
||||||
email = click.prompt("Family Wall email")
|
email = click.prompt("Family Wall E-Mail")
|
||||||
password = click.prompt("Family Wall password", hide_input=True)
|
password = click.prompt("Family Wall password", hide_input=True)
|
||||||
|
|
||||||
# Verify credentials
|
# Verify credentials
|
||||||
|
|||||||
@@ -101,10 +101,18 @@ class FamilyWallClient:
|
|||||||
|
|
||||||
if "ex" in body or "un" in body:
|
if "ex" in body or "un" in body:
|
||||||
error_data = body.get("ex", body.get("un"))
|
error_data = body.get("ex", body.get("un"))
|
||||||
|
print(
|
||||||
|
f"[LOGIN ERROR] status={response.status_code} body={body}",
|
||||||
|
file=sys.stderr,
|
||||||
|
)
|
||||||
msg = f"Login failed: {error_data}"
|
msg = f"Login failed: {error_data}"
|
||||||
raise FamilyWallError(msg, response_data=body)
|
raise FamilyWallError(msg, response_data=body)
|
||||||
|
|
||||||
if "r" not in body:
|
if "r" not in body:
|
||||||
|
print(
|
||||||
|
f"[LOGIN ERROR] status={response.status_code} body={body}",
|
||||||
|
file=sys.stderr,
|
||||||
|
)
|
||||||
raise FamilyWallError("Login failed: unexpected response format", response_data=body)
|
raise FamilyWallError("Login failed: unexpected response format", response_data=body)
|
||||||
|
|
||||||
# Extract JSESSIONID from the Set-Cookie header
|
# Extract JSESSIONID from the Set-Cookie header
|
||||||
|
|||||||
Reference in New Issue
Block a user