How jasper0122/cli-anything-arcgis-pro works
CLI-Anything ArcGIS Pro provides two ways for an agent to operate GIS projects: a headless ArcPy CLI for on-disk projects and data, and an MCP server that controls an open ArcGIS Pro session through an in-process .NET add-in. The headless workflow can inspect or edit data, run geoprocessing, author maps, and export layouts; these are separate CLI commands, not an internally chained pipeline. Shared output handling and destructive-operation guards support the commands. The live bridge’s documented HTTP path is shown; unsampled MCP-server and add-in details are not inferred beyond that documentation.
Main entry points: __main__.py CLI Entry · _io.py JSON And Error Output · cmd_data.py Data Query And Edit · cmd_gp.py Geoprocessing
Components 16
Headless ArcPy CLI
- CLI Entry
cli_anything_arcgis_pro/__main__.py - Project Inspection
cli_anything_arcgis_pro/cmd_project.py - Runtime Info
cli_anything_arcgis_pro/cmd_info.py - Data Query And Edit
cli_anything_arcgis_pro/cmd_data.py - Geoprocessing
cli_anything_arcgis_pro/cmd_gp.py
Map And Publication
- Batch Layout Export
cli_anything_arcgis_pro/cmd_batch.py - Map Authoring
cli_anything_arcgis_pro/cmd_map.py - Layout And Map Series
cli_anything_arcgis_pro/cmd_layout.py
Live MCP Bridge
- MCP Server
live-bridge/mcp_server.py - In-Process Add-In
live-bridge/ProSimpleMapExport/BridgeServer.cs - Add-In Startup
live-bridge/ProSimpleMapExport/Module1.cs
Shared CLI Support
- JSON And Error Output
cli_anything_arcgis_pro/_io.py - Destructive-Action Guard
cli_anything_arcgis_pro/_safety.py
Other components
- AI Agent
- ArcPy Runtime
- Open ArcGIS Pro Project
Connections 30
- AI Agent → CLI Entry: runs commands
README.md - CLI Entry → Project Inspection: dispatches
cli_anything_arcgis_pro/__main__.py - CLI Entry → Runtime Info: dispatches
cli_anything_arcgis_pro/__main__.py - CLI Entry → Data Query And Edit: dispatches
cli_anything_arcgis_pro/__main__.py - CLI Entry → Geoprocessing: dispatches
cli_anything_arcgis_pro/__main__.py - CLI Entry → Batch Layout Export: dispatches
cli_anything_arcgis_pro/__main__.py - CLI Entry → Map Authoring: dispatches
cli_anything_arcgis_pro/__main__.py - CLI Entry → Layout And Map Series: dispatches
cli_anything_arcgis_pro/__main__.py - CLI Entry → ArcPy Runtime: self-dispatches to
cli_anything_arcgis_pro/__main__.py - Project Inspection → ArcPy Runtime: inspects projects
cli_anything_arcgis_pro/cmd_project.py - Runtime Info → ArcPy Runtime: checks runtime
cli_anything_arcgis_pro/cmd_info.py - Data Query And Edit → ArcPy Runtime: queries and edits
cli_anything_arcgis_pro/cmd_data.py - Geoprocessing → ArcPy Runtime: runs tools
cli_anything_arcgis_pro/cmd_gp.py - Map Authoring → ArcPy Runtime: authors maps
cli_anything_arcgis_pro/cmd_map.py - Layout And Map Series → ArcPy Runtime: exports layouts
cli_anything_arcgis_pro/cmd_layout.py - Batch Layout Export → ArcPy Runtime: exports project layouts
cli_anything_arcgis_pro/cmd_batch.py - Project Inspection → JSON And Error Output: formats results
cli_anything_arcgis_pro/cmd_project.py - Runtime Info → JSON And Error Output: formats results
cli_anything_arcgis_pro/cmd_info.py - Data Query And Edit → JSON And Error Output: formats results
cli_anything_arcgis_pro/cmd_data.py - Geoprocessing → JSON And Error Output: formats results
cli_anything_arcgis_pro/cmd_gp.py - Map Authoring → JSON And Error Output: formats results
cli_anything_arcgis_pro/cmd_map.py - Layout And Map Series → JSON And Error Output: formats results
cli_anything_arcgis_pro/cmd_layout.py - Batch Layout Export → JSON And Error Output: formats results
cli_anything_arcgis_pro/cmd_batch.py - Geoprocessing → Destructive-Action Guard: guards tools
cli_anything_arcgis_pro/cmd_gp.py - Data Query And Edit → Destructive-Action Guard: guards expressions
cli_anything_arcgis_pro/cmd_data.py - Batch Layout Export → Layout And Map Series: reuses export settings
cli_anything_arcgis_pro/cmd_batch.py - AI Agent → MCP Server: calls MCP tools
README.md - MCP Server → In-Process Add-In: sends HTTP requests
README.md - Add-In Startup → In-Process Add-In: starts bridge
live-bridge/ProSimpleMapExport/Module1.cs - In-Process Add-In → Open ArcGIS Pro Project: dispatches project tasks
live-bridge/ProSimpleMapExport/BridgeServer.cs