io.github.sgdev279/utility-network-mcp

Registre officiel Administration et juridique

Esri ArcGIS Utility Network tools: trace, subnetworks, dirty areas, associations

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

PYPI package utility-network-mcp
Claude Code
claude mcp add utility-network-mcp -e 'UN_FEATURE_SERVICE_URL=<UN_FEATURE_SERVICE_URL>' -e 'UN_PORTAL_URL=<UN_PORTAL_URL>' -e 'UN_CLIENT_ID=<UN_CLIENT_ID>' -e 'UN_CLIENT_SECRET=<your un_client_secret>' -e 'UN_USERNAME=<UN_USERNAME>' -e 'UN_PASSWORD=<your un_password>' -e 'UN_TOKEN=<your un_token>' -e 'UN_ALLOW_WRITES=<UN_ALLOW_WRITES>' -- uvx utility-network-mcp==0.2.0
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "utility-network-mcp": {
            "command": "uvx",
            "args": [
                "utility-network-mcp==0.2.0"
            ],
            "env": {
                "UN_FEATURE_SERVICE_URL": "<UN_FEATURE_SERVICE_URL>",
                "UN_PORTAL_URL": "<UN_PORTAL_URL>",
                "UN_CLIENT_ID": "<UN_CLIENT_ID>",
                "UN_CLIENT_SECRET": "<your un_client_secret>",
                "UN_USERNAME": "<UN_USERNAME>",
                "UN_PASSWORD": "<your un_password>",
                "UN_TOKEN": "<your un_token>",
                "UN_ALLOW_WRITES": "<UN_ALLOW_WRITES>"
            }
        }
    }
}

Variables d'environnement

  • UN_FEATURE_SERVICE_URL obligatoire Utility network FeatureServer URL (ends with /FeatureServer)
  • UN_PORTAL_URL Portal URL, for username/password or OAuth client-credential auth
  • UN_CLIENT_ID OAuth app client id (client_credentials)
  • UN_CLIENT_SECRET secret OAuth app client secret
  • UN_USERNAME Portal username (generateToken)
  • UN_PASSWORD secret Portal password
  • UN_TOKEN secret Pre-issued ArcGIS token
  • UN_ALLOW_WRITES Set to true to enable validate topology / update subnetwork tools

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. See it in action
  2. Quick start
  3. What the skill knows
  4. How it's built
  5. Help improve it
  6. Repository layout
  7. Disclaimer
  8. Author
Give Claude and other AI agents working knowledge of the Esri ArcGIS Utility Network.

Utility Network questions are hard for general-purpose AI: the answer depends on the dataset version, the deployment, which API you're in, and a long list of ordering rules and gotchas. This project packages that knowledge as a Claude Agent Skill so an agent answers like an experienced UN implementer.

The skill is 29 curated reference files, answer templates, helper scripts and evals. It works in Claude.ai, Claude Code and any agent that reads Agent Skills.

See it in action

Real questions with the details a consultant would be given. Full walk-throughs with captured output are in docs/EXAMPLES.md.

1. Apply Asset Package fails when adding gas to a water UN

Pro 3.5, Enterprise 11.3. WaterUN already has the Water domain network. Two maps open, connected as gis_editor (owner is wateradmin), portal login jsmith, version wateradmin.crew1, topology enabled for dispatch.

Finds five violated prerequisites at once (maps open, topology enabled, wrong database user, wrong portal user, not on DEFAULT), gives the fix order, and confirms that applying Gas does not wipe Water because the tool is additive.

2. Isolation trace at the midpoint of main {8F2A6C1E-...} on branch crew1.outage

Stop at operable Isolating valves, domain Water, tier Pressure, someone else has the version open.

Produces a complete request (percentAlong: 0.5, filterBarriers, string values, no sessionId), and a validator checks it. On a request with typical mistakes the validator reports seven problems, such as a percent along of 50, a start with no terminal or percent, and a misspelled tierNam.

3. Dirty areas: Status 1 x 41,220, 9 x 312, 8 x 5, 40 x 18, and validate "succeeded"

$ python scripts/decode_dirty_status.py 9 8 40
9: feature inserted or updated; feature error  [edit + error]  ->  Validate will evaluate it. ...
8: feature error  [error only]  ->  Validate will IGNORE this row. ... fix it by EDITING the feature ...
40: feature error; subnetwork error  [error only]  ->  Validate will IGNORE this row. ... run Update Subnetwork ...

Rows 8 and 40 have no edit bit, so validate ignores them: edit the feature, then validate.

How these were tested, and where they fell short, is in docs/TESTING.md.

Quick start

Claude Code

claude plugin marketplace add sgdev279/esri-utility-network-skill
claude plugin install utility-network@esri-utility-network

Claude.ai / Claude desktop app — download utility-network.skill from the latest release and add it to your skills.

Any skills-aware agent — copy plugins/utility-network/skills/utility-network into its skills folder.

What the skill knows

AreaCoverage
Core modelStructure & domain networks, tiers (partitioned/hierarchical), subnetworks, terminals, asset groups/types, network attributes, categories, rules
OperationsNetwork topology, dirty areas & the Status bitmask, Error Inspector, Update/Export Subnetwork, branch versioning conflicts
TracingAll trace types, traversability, filter barriers, functions, propagators, output filters — plus the full REST traceConfiguration schema
DeploymentUN Foundations & asset packages, dataset versions 4–8 with the Pro/Enterprise compatibility matrix, Upgrade Dataset, publishing, owners, licensing
APIsREST (UtilityNetworkServer, NetworkDiagramServer, versioning, validation), ArcGIS Maps SDK for JavaScript, Pro SDK (C#), arcpy.un, Experience Builder

Every answer follows a defined format (how-to, troubleshooting, code, concept, cross-API translation), states which versions it applies to, and flags anything unverified.

How it's built

flowchart LR
    Q[User question] --> S[SKILL.md<br/>workflow · disambiguation · answer formats]
    S -->|loads only what's needed| R[(references/<br/>pro-help · rest-api · js-api<br/>pro-sdk · arcpy)]
    S -->|runs instead of guessing| T[scripts/<br/>status decoder · association codes<br/>trace request checker]
    S --> A[Structured answer<br/>with version caveats]

The skill uses progressive disclosure: Claude reads the short SKILL.md first, then pulls in only the reference files a question needs, so broad coverage doesn't cost context on every question.

Help improve it

The skill is designed to grow. You can contribute without writing code:

  • Share knowledge — a gotcha you hit, a fix from Esri Community, a doc page the skill should know → open an "Add UN knowledge" issue
  • Report something wrong or outdated → open a correction
  • Write a reference file → python tools/new_reference.py scaffolds one in the house format; CI checks it

Details in CONTRIBUTING.md. Planned content is tracked in the roadmap, and content freshness in docs/FRESHNESS.md.

Repository layout

plugins/utility-network/skills/utility-network/   the skill
  SKILL.md                                         entry point: workflow, routing, answer formats
  references/                                      topic files (pro-help, rest-api, js-api, pro-sdk, arcpy …)
  scripts/                                         helper scripts
  evals/                                           test prompts and trigger tests
tests/                                             tests for the helper scripts
examples/                                          sample trace requests
tools/                                             maintainer tools (scaffold, lint, freshness)
knowledge-inbox/                                   raw notes waiting to be turned into references
docs/                                              roadmap, freshness report, assets
.github/                                           CI, release, issue forms

Disclaimer

Independent community project — not affiliated with or endorsed by Esri. ArcGIS and ArcGIS Utility Network are trademarks of Esri. Reference content is written in our own words from public Esri documentation; each file lists its sources and review date. Always confirm version-specific behaviour against Esri's documentation before production changes.

Author

Built by Sayanta Ghosh (@sgdev279). If this helps your utility GIS work, a ⭐ helps others find it.

Licensed under the MIT License.

Questions fréquentes

Qu'est-ce que io.github.sgdev279/utility-network-mcp ?

Esri ArcGIS Utility Network tools: trace, subnetworks, dirty areas, associations

Comment installer io.github.sgdev279/utility-network-mcp ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add utility-network-mcp -e 'UN_FEATURE_SERVICE_URL=<UN_FEATURE_SERVICE_URL>' -e 'UN_PORTAL_URL=<UN_PORTAL_URL>' -e 'UN_CLIENT_ID=<UN_CLIENT_ID>' -e 'UN_CLIENT_SECRET=<your un_client_secret>' -e 'UN_USERNAME=<UN_USERNAME>' -e 'UN_PASSWORD=<your un_password>' -e 'UN_TOKEN=<your un_token>' -e 'UN_ALLOW_WRITES=<UN_ALLOW_WRITES>' -- uvx utility-network-mcp==0.2.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.sgdev279/utility-network-mcp ?

Oui. Il attend UN_FEATURE_SERVICE_URL, UN_CLIENT_SECRET, UN_PASSWORD, UN_TOKEN, à renseigner dans sa configuration.

io.github.sgdev279/utility-network-mcp est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.sgdev279/utility-network-mcp ?

Il est publié par sgdev279. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.