feat: add domain reads #25
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 missing domain read endpoints so MCP can pull domain data, not just write it.
What I changed
/landscapes/{landscapeId}/versions/{versionId}/domainsWhy I did it
Notes
Test plan
Note
Medium Risk
Introduces a new, more feature-complete IcePanel API client (timeouts/retries/env validation) plus new MCP domain tools; behavior changes in request handling and error/retry logic could affect integrations if this client replaces prior callers.
Overview
Adds a new
src/services/icepanel-client.tsIcePanel API client with validatedICEPANEL_API_BASE_URL, configurable timeouts/retries, exponential backoff for retryable GET/HEAD failures, and a structuredIcePanelApiError+handleApiErrorhelper.Introduces MCP domain tooling via
registerDomainTools(icepanel_list_domainswith optional fuzzy search/pagination, plusicepanel_get_domain/create/update/delete_domain) and extendssrc/types.tswith domain/tag entities and request/response types for model object/connection/tag/domain CRUD, while tightening unions forModelObject.status/typeand addingModelConnectionResponse.Written by Cursor Bugbot for commit f84ede0. This will update automatically on new commits. Configure here.
Recommended merge order