Skip to content

fix: Resolve mcp dev connection issues and move VisualState#22

Merged
abrichr merged 4 commits intomainfrom
feat/visual-state
Apr 5, 2025
Merged

fix: Resolve mcp dev connection issues and move VisualState#22
abrichr merged 4 commits intomainfrom
feat/visual-state

Conversation

@abrichr
Copy link
Member

@abrichr abrichr commented Apr 5, 2025

  • Moves VisualState class to its own file (omnimcp/visual_state.py).
  • Renames omnimcp/omnimcp.py to omnimcp/mcp_server.py.
  • Refactors mcp_server.py to instantiate FastMCP at module level, use mcp.run(), and require OMNIPARSER_URL via config, fixing connection errors with mcp dev.
  • Updates imports and README architecture section for file changes.
  • Modifies MCP tools (click_element, type_text) to remove second state update/verification to mitigate timeouts (though underlying performance issues remain).

image

abrichr added 4 commits April 4, 2025 23:09
- Moves VisualState class to its own file (omnimcp/visual_state.py).
- Renames omnimcp/omnimcp.py to omnimcp/mcp_server.py.
- Refactors mcp_server.py to instantiate FastMCP at module level, use mcp.run(), and require OMNIPARSER_URL via config, fixing connection errors with `mcp dev`.
- Updates imports and README architecture section for file changes.
- Modifies MCP tools (click_element, type_text) to remove second state update/verification to mitigate timeouts (though underlying performance issues remain).
@abrichr abrichr merged commit 65b8d57 into main Apr 5, 2025
1 check passed
@abrichr abrichr deleted the feat/visual-state branch April 5, 2025 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant