Skip to content

feat: upgrade to prime-sdk-go v0.12.0 and add new endpoints - #29

Open
cfluke-cb wants to merge 2 commits into
mainfrom
cfluke/sep-update
Open

feat: upgrade to prime-sdk-go v0.12.0 and add new endpoints#29
cfluke-cb wants to merge 2 commits into
mainfrom
cfluke/sep-update

Conversation

@cfluke-cb

Copy link
Copy Markdown
Contributor

Description

Bumps prime-cli to prime-sdk-go v0.12.0 (v0.6.0) so the CLI covers the latest Prime REST surface.

Adds nine commands (and matching MCP tools) for conversion fees, cross-margin liquidations, trade finance obligations, rewards rates, FCM equity, and international derivatives. API failures now print trace_id and the spec subcode/code description. Also exposes newer request fields on existing commands (orders edit, staking, withdrawals) and backfills MCP tools that were missing from v0.5.0.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency update
  • Refactor / cleanup
  • Other (describe below)

Checklist

  • Tests included / updated
  • Changelog updated
  • Version bump if needed

Test plan

  • go test ./utils/... && go build -o primectl . && go vet ./...
  • ./primectl version reports 0.6.0
  • ./primectl financing --help and ./primectl futures --help list the nine new commands
  • Optional live checks with PRIME_CREDENTIALS for new financing/futures commands
  • Confirm an API error on stderr includes trace_id and a subcode description

Made with Cursor

@cfluke-cb
cfluke-cb requested a review from a team as a code owner September 11, 2026 18:07
Comment thread cmd/mcp/helpers.go
for i, arg := range args {
err, isError := arg.(error)
if isError {
out[i] = utils.FormatCLIError(err)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FormatCliError

Comment thread cmd/mcp/server.go
s := server.NewMCPServer(
"coinbase-prime",
"0.4.2",
"0.6.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not 0.5.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants