Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
get_mira_api_capabilitiesto discover the fixed MIRA public API catalog.call_mira_apito execute catalogued operations with strict path, query, payload, and download validation.Why
MIRA exposes a broad, regular action-oriented API. A fixed catalog plus one constrained dispatcher keeps the MCP tool surface small while preventing arbitrary paths or HTTP methods. Threshold controls let Headless configure native monitoring without browser-session credentials or generic agent-setting replacement.
Impact
Agents can inspect and administer MIRA through two discoverable Headless tools. JSON, multipart evidence upload, revision-aware mutation workflows, and safe binary downloads are supported. Existing Headless tools are unchanged.
Compatibility
The branch includes current main's shared authentication/executor refactor. MIRA operations preserve request-scoped identity across stdio and HTTP; local-file risk evidence upload/download is blocked in HTTP mode to protect the MCP host filesystem. The two monitoring-threshold operations require a DIP build exposing
GET/PUT /publicapi/dam/infras/{infraId}/agents/{agentId}/monitoring-thresholds. This backend extension has been implemented and verified locally, but is not included in this Headless PR and is not assumed available in stock releases. The catalog describes client support, not live server capability detection; unsupported servers can return 404. No fallback to internal UI APIs is attempted.evaluate_mira_alertsrequires the native publicPOST /publicapi/dam/agents/actions/evaluate-alertsendpoint. Empty agent filters evaluate all writable agents; the operator guide requires reviewing the selected scope first.Validation
uv sync --lockeddataiku_mcpsourcesuv run cz check --rev-range origin/main..HEADuv run pytest— 470 passeduv run pre-commit run --all-files --show-diff-on-failureuv lock --script runtime/run_mcp.py --checkuv build— sdist and wheel built successfully; isolated wheel import smoke passed