Repository navigation
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.
Superseded by #7. The replacement retains the exact implementation commit on the current publishing branch.
CPZAI's MCP adapter exposed only the first page of several account and portfolio lists, omitted stop-price input, and could describe a failed or timed-out execution as successful. This change expands the public surface from 21 to 31 tools and makes those outcomes explicit.
Adds data-file discovery and record inspection, individual backtest/order/risk reads, and five middle-office reporting tools through existing scoped REST endpoints. Existing tools gain bounded pagination and validation, historical feed selection, structured results, and request tracing. GET retries are bounded; mutations are never retried, and uncertain outcomes include reconciliation guidance. Failed Python executions and partial portfolio syncs remain errors.
Adds two MCP guide resources, two read-only workflow prompts, browser preflight support, request transport cleanup, and a catalog exported from real MCP discovery with documentation drift checks. Version 1.2.0 retains existing tool names. Time-in-force is restricted to day because legacy broker routes ignore other durations; broker stop support remains a documented limitation.
Validation: TypeScript build passes; all 135 MCP tests pass; local HTTP smoke verifies OPTIONS 204, unauthenticated 401 challenge, and tools/list with 31 tools. No live trades, deployment, or migrations.
GitHub Actions could not start because of the repository account billing lock. Local verification completed.
Companion change: https://github.com/CPZ-Lab/cpzai/pull/1602