feat: add diagram reads #27
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I added the diagram read endpoints so MCP can list and fetch diagrams, plus thumbnails.
What I changed
Why I did it
Notes
Test plan
Note
Medium Risk
Moderate risk due to introducing a new, large IcePanel API client surface (env-configured base URL, timeouts/retries, error handling) and wiring new MCP tools to new endpoints; regressions could affect all API calls and tool outputs.
Overview
Adds a new
icepanel-clientservice that centralizes authenticated IcePanel API calls, including timeout/retry logic, base URL validation via env vars, and user-facinghandleApiErrormessaging, plus many new read/write endpoint wrappers.Introduces new MCP tools in
diagrams.tsto list/get diagrams and diagram thumbnails, including optional fuzzy search, pagination, and markdown/json formatting, and wires them intoregisterAllTools.Updates
types.tsto expand model object enums and add response/request types for connections, model-object/tag/domain write operations, and diagram/thumbnail payloads (and removes the oldTeam/TeamsResponsetypes).Written by Cursor Bugbot for commit 4c37373. This will update automatically on new commits. Configure here.
Recommended merge order