Repository navigation
feat: fix AMC seller 403, auditor report fields, and the using-kuudo connect flow - #65
Conversation
A client session with the plugin and the Kuudo Amazon Ads server showed the skill loading twice, repeating setup for a server that was already connected, and presenting 7 of 16 profiles as the full list. - "Already connected" confirms the connection read-only and asks which account to work in; setup steps move under "Not connected". - The skill and the session hook's preamble say the text is already loaded. Host notes move from two reference files into "Hosts", because the hook injects the skill without its directory. - A duplicates rule prefers the kuudo-skills: copy and Kuudo's servers. - The list_identities warning carries the measured 7 against 16. - The "1% chance" block, the rationalizations table, the examples, and the exact announcement format are removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Pre-flight told agents to send accountInfo.id as the advertiser header. On a seller profile that is the merchant ID, and amc_listInstances answers it with 403. The skill now takes entityId from the advertiser account's alternateIds entry for the profile. Measured 2026-11-25: 4 of 4 seller profiles differed from their entityId, 11 of 11 vendor profiles matched. - The download step no longer suggests fetching inside the MCP's execute block, which can't fetch URLs, and it unescapes an HTML-escaped link. - The six-step audience workflow moves unchanged to references/12-audience-workflow.md, so SKILL.md drops from 6,438 to 4,781 words. - compatibility frontmatter, and evals 17 and 18. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The starting field set was rejected with 400006 because it lacked budgetCurrency.value, and it left the cost field for the agent to discover. - The set names metric.totalCost, adds budgetCurrency.value, adds campaign.country so each row carries its marketplace, and drops campaign.currencyCode, which came back blank on every row. - A report covers the whole advertiser account, so the workflow checks marketplaces and currencies before totaling. - adProduct.value comes back as display text, not the filter's enum. - The download happens in the client's own environment, and an HTML-escaped link is unescaped first. - Evals 16 to 18; eval 4 checks the new fields. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A seller profile's accountInfo.id is a merchant ID. The entity ID is on the account's alternateIds entry for the profile. The quick reference, Common Mistakes, and the identifiers reference now say so, which makes this skill and amazon-ads-marketing-cloud agree. The list_identities warning carries the measured counts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1faaf4283c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| 1. `list_identities` on the server. With one identity, use it and say which; with several, ask. | ||
| 2. That server's listing tool for what the identity reaches, such as `ac_listProfiles` on Amazon Ads or `sellers_getMarketplaceParticipations` on Selling Partner. |
There was a problem hiding this comment.
Establish Selling Partner routing before listing marketplaces
For an EU or FE Selling Partner identity, this connection check can fail despite valid authorization because it never establishes the region before calling sellers_getMarketplaceParticipations. As documented in skills/amazon-sp-fba-inbound/references/tool-access.md, selecting an identity clears marketplace/region selection and routing defaults to na; identity selection must also occur in the same execute block as the read. Add those prerequisites to this bootstrap flow, using the chosen identity's region or a marketplace it covers, before attempting the listing. Otherwise a user asking to verify a working non-NA connection can receive an authorization error instead of their marketplace list.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Confirmed against the Selling Partner server's own tool descriptions ("select identity first, then marketplace and dependent Amazon operations within the same execute. Nothing carries to the next execute.") and amazon-sp-fba-inbound/references/tool-access.md. Fixed in 3cf3605: the check now selects the identity and a marketplace it covers in the same execute block as the read, and the closing sentence about session-long selections is scoped to Amazon Ads. This branch was not run live; the available Selling Partner identity is North America only, which would not show the routing failure.
The connected check named sellers_getMarketplaceParticipations with no routing step. On Selling Partner a selection lasts one execute block and the region defaults to North America, so an EU or FE seller would get an authorization error from a working connection. The check now selects the identity and a marketplace it covers in the same block as the read. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why
A client session on 2026-11-25, using the plugin with the Kuudo Amazon Ads server, reported four problems. Each was reproduced read-only on the live server before the fix and checked again after it.
amc_listInstancesreturned 403 for the seller profile'saccountInfo.idand the instance for theentityIdonalternateIdsamazon-ads-marketing-cloud0.6.0,amazon-ads-accounts1.2.1400006; the new one was acceptedamazon-ads-sp-campaign-auditor0.5.0using-kuudoloads twice and has nothing to say when the server is already connectedusing-kuudo0.5.0 and the hook preambleSKILL.mdWhat changed
using-kuudo0.4.0 → 0.5.0references/claude-code.mdandreferences/codex.mdinto a "Hosts" section, which now also covers chat in the Claude apps, Cowork, and Gemini CLI.kuudo-skills:copy and Kuudo's servers unless the user names another.Using [skill] to [purpose].format. The skill now asks only that the user be told which skill is in use.amazon-ads-marketing-cloud0.5.2 → 0.6.0entityIdfrom the advertiser account'salternateIdsentry for the profile. The header pattern, the 403 rows, and the fan-out flows match.executeblock, and it unescapes an HTML-escaped link.references/12-audience-workflow.md. Guardrails, reply shapes, pre-flight, SQL essentials, and troubleshooting are unchanged.compatibilityfrontmatter added.amazon-ads-sp-campaign-auditor0.4.2 → 0.5.0metric.totalCost, addsbudgetCurrency.valueandcampaign.country, and dropscampaign.currencyCode, which came back blank.amazon-ads-accounts1.2.0 → 1.2.1Tests
claude-plugin.test.tschecks the hook's "already loaded" line instead of the removed announcement wording.smoke.test.tschecks thatusing-kuudocarries its host guidance inline.Evidence
Seven runs of the revised skills, one run each, all passing their assertions:
npm run validate,catalog:check,version:check,skills:version-check,commits:check, andtest:unit(158 pass, 1 skipped) pass locally.For the reviewer
using-kuudois about the same length (1,143 to 1,159 words). The saving is one load instead of two.&note is in three places (using-kuudo, the auditor, and AMC). In one probe the link was clean insideexecuteand escaped when delivered, so remove the note once that is fixed upstream.amazon-ads-reportingstill listscampaign.currencyCodeandcountry.codefor the Sponsored Products campaign report; both came back blank in the probe.🤖 Generated with Claude Code