问题 / Question
清晰地描述您的问题。
Clearly describe your question.
INFO: Started server process [31687]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:50439 - "GET /mcp?role=Developer&name=leo HTTP/1.1" 406 Not Acceptable
INFO: 127.0.0.1:50574 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 400 Bad Request
INFO: 127.0.0.1:50590 - "GET /mcp?role=Developer&name=leo HTTP/1.1" 400 Bad Request
INFO: 127.0.0.1:50610 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 200 OK
WARNING:root:Failed to validate request: Received request before initialization was complete
INFO: 127.0.0.1:50635 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 200 OK
INFO: 127.0.0.1:50657 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 202 Accepted
INFO: 127.0.0.1:50678 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 200 OK
INFO: 127.0.0.1:50707 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 200 OK
[04/30/26 11:18:06] Error calling tool 'lanhu_get_designs'
╭───────────────────────────── Traceback (most recent call last) ─────────────────────────────╮
│ //lanhu-mcp/venv/lib/python3.14/site-packages/fastmc │
│ p/server/server.py:1240 in call_tool │
│ │
│ //lanhu-mcp/venv/lib/python3.14/site-packages/fastmc │
│ p/tools/base.py:377 in _run │
│ │
│ ... 3 frames hidden ... │
│ │
│ //lanhu-mcp/lanhu_mcp_server.py:2185 in │
│ get_project_id_from_url │
│ │
│ 2182 │ if not url or url.lower() == 'all': │
│ 2183 │ │ return None │
│ 2184 │ extractor = LanhuExtractor() │
│ ❱ 2185 │ params = extractor.parse_url(url) │
│ 2186 │ return params.get('project_id', '') │
│ 2187 │
│ 2188 │
│ │
│ //lanhu-mcp/lanhu_mcp_server.py:2365 in parse_url │
│ │
│ 2362 │ │ │ raise ValueError(f"URL parsing failed: missing required param pid │
│ (project_id)") │
│ 2363 │ │ │
│ 2364 │ │ if not team_id: │
│ ❱ 2365 │ │ │ raise ValueError(f"URL parsing failed: missing required param tid │
│ (team_id)") │
│ 2366 │ │ │
│ 2367 │ │ return { │
│ 2368 │ │ │ 'team_id': team_id, │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: URL parsing failed: missing required param tid (team_id)
命令是:
请帮我用mcp看看这个设计稿:
https://lanhuapp.com/web/#/item/project/detailDetach?pid=xxxxxxx&project_id=xxxxxx&image_id=xxxxxx&fromEditor=true

问题 / Question
清晰地描述您的问题。
Clearly describe your question.
INFO: Started server process [31687]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:50439 - "GET /mcp?role=Developer&name=leo HTTP/1.1" 406 Not Acceptable
INFO: 127.0.0.1:50574 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 400 Bad Request
INFO: 127.0.0.1:50590 - "GET /mcp?role=Developer&name=leo HTTP/1.1" 400 Bad Request
INFO: 127.0.0.1:50610 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 200 OK
WARNING:root:Failed to validate request: Received request before initialization was complete
INFO: 127.0.0.1:50635 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 200 OK
INFO: 127.0.0.1:50657 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 202 Accepted
INFO: 127.0.0.1:50678 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 200 OK
INFO: 127.0.0.1:50707 - "POST /mcp?role=Developer&name=leo HTTP/1.1" 200 OK
[04/30/26 11:18:06] Error calling tool 'lanhu_get_designs'
╭───────────────────────────── Traceback (most recent call last) ─────────────────────────────╮
│ /
/lanhu-mcp/venv/lib/python3.14/site-packages/fastmc │/lanhu-mcp/venv/lib/python3.14/site-packages/fastmc ││ p/server/server.py:1240 in call_tool │
│ │
│ /
│ p/tools/base.py:377 in _run │
│ │
│ ... 3 frames hidden ... │
│ │
│ /
/lanhu-mcp/lanhu_mcp_server.py:2185 in │/lanhu-mcp/lanhu_mcp_server.py:2365 in parse_url ││ get_project_id_from_url │
│ │
│ 2182 │ if not url or url.lower() == 'all': │
│ 2183 │ │ return None │
│ 2184 │ extractor = LanhuExtractor() │
│ ❱ 2185 │ params = extractor.parse_url(url) │
│ 2186 │ return params.get('project_id', '') │
│ 2187 │
│ 2188 │
│ │
│ /
│ │
│ 2362 │ │ │ raise ValueError(f"URL parsing failed: missing required param pid │
│ (project_id)") │
│ 2363 │ │ │
│ 2364 │ │ if not team_id: │
│ ❱ 2365 │ │ │ raise ValueError(f"URL parsing failed: missing required param tid │
│ (team_id)") │
│ 2366 │ │ │
│ 2367 │ │ return { │
│ 2368 │ │ │ 'team_id': team_id, │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: URL parsing failed: missing required param tid (team_id)
命令是:
请帮我用mcp看看这个设计稿:
https://lanhuapp.com/web/#/item/project/detailDetach?pid=xxxxxxx&project_id=xxxxxx&image_id=xxxxxx&fromEditor=true