fix: parse MCP result payloads and drop place idempotency_key

Typed result structs replace empty envelopes. Equity place sends
ref_id only so live additionalProperties:false schemas accept the call.
This commit is contained in:
2026-09-01 14:18:39 -05:00
parent f52a19181d
commit a6bf8632ce
22 changed files with 2225 additions and 74 deletions
+14 -2
View File
@@ -63,14 +63,26 @@ type ItemsResult struct {
// OptionListRequest is the argument set for get_option_watchlist (none).
type OptionListRequest struct{}
// OptionWatchItem is one contract on the options watchlist.
type OptionWatchItem struct {
OptionID string
Symbol string
Title string
PositionType string
}
// OptionListResult is the parsed get_option_watchlist payload.
type OptionListResult struct{}
type OptionListResult struct {
Items []OptionWatchItem
}
// PopularRequest is the argument set for get_popular_watchlists (none).
type PopularRequest struct{}
// PopularResult is the parsed get_popular_watchlists payload.
type PopularResult struct{}
type PopularResult struct {
Watchlists []Watchlist
}
// CreateRequest is the argument set for create_watchlist.
type CreateRequest struct {