Skip to content

[BUG] Internal server error 500Β #2

Description

@toffudi

πŸ› Bug Description

File "C:...s\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uvicorn\middleware\asgi2.py", line 14, in call
instance = self.app(scope)
^^^^^^^^^^^^^^^
TypeError: 'FastMCP' object is not callable
INFO: 127.0.0.1:62780 - "POST /api/v1/windows/find HTTP/1.1" 500 Internal Server Error

πŸ”„ Steps to Reproduce

  1. Installed from source
  2. python -m uvicorn pywinauto_mcp.main:app
  3. Invoke-RestMethod -Uri "http://localhost:8000/api/v1/windows/find" -Method Post -Body (@{title="Untitled - Notepad"; timeout=5} | ConvertTo-Json) -ContentType "application/json"
  4. Zonk :(

βœ… Expected Behavior

Should not generate 500 error but some response ?

❌ Actual Behavior

πŸ“‹ Environment

  • OS: [Windows 11]
  • Python Version: 3.11.9
  • PyWinAuto MCP Version: latest
  • Installation Method: Source

πŸ“Š Logs/Screenshots

πŸ”§ Additional Context

will try to debug yet ,,,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions