Skip to content

Stripe settings + adaptive offers tools (XDEV-2336, XDEV-2335)#17

Closed
hookdump wants to merge 1 commit into
xdev-2338-2331-mcp-sessions-flow-metricsfrom
xdev-2336-2335-mcp-settings-adaptive-offers
Closed

Stripe settings + adaptive offers tools (XDEV-2336, XDEV-2335)#17
hookdump wants to merge 1 commit into
xdev-2338-2331-mcp-sessions-flow-metricsfrom
xdev-2336-2335-mcp-settings-adaptive-offers

Conversation

@hookdump

Copy link
Copy Markdown
Contributor

Stacked on #16 (flow metrics) → #15 (OAuth).

Four new tools:

  • get_stripe_settings / update_stripe_settings — billing settings with per-setting descriptions + recommendations; writes need confirm: "update_stripe_settings" and the admin-ceilinged stripe_settings.write scope; conflicts (pauseEndOfTerm × annualPauseExtendTerm) are explained, before/after audit-logged.
  • get_adaptive_offers / update_adaptive_offers — adaptive discount config with strategy presets, 5–95%/5-step guardrails, Intelligence gating, learning-period warnings. Attaching to a flow step (update_blueprint_offer config.autoOptimize) enforces the compound scope rule server-side.

Server: churnkey-api#879. 54 tests passing.

XDEV-2336 · XDEV-2335

🤖 Generated with Claude Code

get_stripe_settings / update_stripe_settings (confirm literal, conflict
explanations, before/after) and get_adaptive_offers / update_adaptive_offers
(strategy presets, guardrails, learning-period warnings). Tool descriptions
teach the agent to read+relay setting descriptions before changing live
billing behavior. New scopes added to DEFAULT_SCOPES. 54 tests passing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hookdump

Copy link
Copy Markdown
Contributor Author

Superseded by #25 — [MCP reslice 2/2] @churnkey/mcp tool definitions (this tool is included there). Closing in favor of the reslice.

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.

1 participant