COD-1178: expose app APIs and Hotlist through CLI and MCP - #39
Open
Sagar-CodeAnt wants to merge 2 commits into
Open
COD-1178: expose app APIs and Hotlist through CLI and MCP#39Sagar-CodeAnt wants to merge 2 commits into
Sagar-CodeAnt wants to merge 2 commits into
Conversation
🤖 CodeAnt AI — Review Status
|
CodeAnt Nitpicks1 code suggestion1. Polling can exceed the configured maximum wait by an entire retry interval.Logic error · |
CodeAnt Confidence score 4/5
|
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.
Summary
codeant api request <method> <path>without adding a CLI command for every backend routecodeant hotlist listandcodeant hotlist get <stable-id>commands with UI-compatible filters, cursor pagination, tenant discovery, and snapshot pollingCODEANT_READ_ONLY=0cli-api.mdmanual and update README/MCP documentationCommand flow
The generic command covers current and future authenticated app endpoints through a relative path. POST/PUT/PATCH/DELETE payloads must be JSON objects; the CLI adds canonical tenant fields and the backend rejects conflicts.
Security contract
Authorization,Cookie,Host,Content-Length, and allX-CodeAnt-CLI-*headers cannot be overriddencodeant logoutthencodeant loginonce to gain verified app-API identity metadataManual
See
cli-api.mdfor login, tenant selection, all Hotlist filters, stable-ID lookup, pagination, self-hosted providers, generic requests, MCP safety, logout/revocation, and troubleshooting.Validation
npm test -- --run tests/apiRequest.test.js tests/hotlist.test.js tests/fetchApi.test.js tests/logout.test.js— 15 passedapi requestandhotlistgit diff --checkThe repository-wide suite also reaches configured online CodeAnt endpoints; those cases failed here with
ENOTFOUND. Two unrelated existing secret-classification expectations and the existing--include-dismissedmismatch also failed. COD-1178 focused tests pass.Dependencies and tracking