Skip to content

chore: regenerate catalog from OpenAPI spec - #50

Merged
dangrondahl merged 1 commit into
mainfrom
chore/update-catalog
Aug 18, 2026
Merged

dangrondahl merged 1 commit into
mainfrom
chore/update-catalog

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated catalog update from the Kosli OpenAPI spec.

Please review the diff to verify the changes look correct before merging.

@claude

claude Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

Claude finished @github-actions[bot]'s task in 1m 53s —— View job


Catalog diff review

  • Read the catalog diff
  • Classify added / removed / changed actions
  • Grep for dangling references
  • Sanity checks (action count, stray $ref)
  • Post summary

Verdict: safe to merge. Purely additive — no actions removed, so neither of the past failure modes (#16 stale-branch clobber, #18 upstream retirement) applies here. Nothing needs confirming against the live spec.


1. Actions added

None. Action count is unchanged: 132 → 132.

2. Actions removed

None. No id was dropped from the catalog, so there is no removal to verify against https://app.kosli.com/api/v2/openapi.json.

3. Actions changed

Two actions, three hunks, all additive or descriptive.

get_flows — GET /flows/{org} (src/catalog.json:3030)

  • Two new optional query params (src/catalog.json:3090):

    • sort — enum ["name","latest_activity"], default "name"
    • sort_direction — enum ["asc","desc"], default "asc"

    Both optional with server-side defaults, so existing execute_read_action calls are unaffected.

  • search_by_name description rewritten (src/catalog.json:3048), in both the param description and the mirrored schema.description:

    Only alphanumeric characters and - are allowed. → Matched literally, so -prod finds the flows whose name ends in -prod.

    This is the one change with behavioural consequences worth a second look. The old text described an input restriction; the new text describes matching semantics and drops the character constraint entirely. An LLM reading the new description will feel free to pass values containing _, ., / etc. That's presumably the intent (the constraint was lifted upstream), but it's the sort of change worth eyeballing against the live spec if you have it open anyway — the diff can't tell "constraint relaxed" from "docs corrected".

post_custom_attestation_type — POST /custom-attestation-types/{org} (src/catalog.json:5866)

  • New optional request-body field summary (src/catalog.json:5929): array<SummaryExpression> | null, where SummaryExpression is {name: string, expression: string}, both required, additionalProperties: false. Described as "A named JQ expression that extracts a display value from attestation data."
  • The body example was updated to match (src/catalog.json:5959): "summary": [{"expression": ".age", "name": "Age"}]. Good — the example and schema stayed in sync, which is what the LLM actually copies from.

Nullable + optional, so no existing write call breaks.

4. Deprecations

None. No field gained a deprecated marker in this diff.

5. Dangling references

Nothing was removed or renamed, so there is nothing to go stale. Confirmed anyway — grepping the repo for get_flows, custom_attestation_type, and search_by_name matches only src/catalog.json. src/hints.json and test/fixtures/catalog-subset.json don't cover either action, so neither needs updating.

6. Sanity checks

Check Result
Action count 132 → 132 — no drop
Stray $ref in catalog 0 occurrences — all refs inlined as expected
Diff scope 3 hunks across 2 actions; no unrelated churn or reformatting
Formatting Consistent with the width-capped compact formatter (scripts/format-json.ts)
Schema/example drift None — the summary example matches the new schema

One thing that isn't a defect but is worth knowing: searchText is built from summary/description/tags/path/method only (scripts/generate-catalog.ts:122), so the new sort/sort_direction/summary param names are not in the search index. That's by design — search_actions surfaces the action, and the params come along in the action detail — but it does mean a user query like "sort flows by latest activity" won't get a relevance boost from the new params.

Not verified: I couldn't run npm ci / npm test in this sandbox (install was blocked), so the test suite result here is from CI, not from me. Since no fixture or hint references the changed actions, I'd expect it green.
· branch chore/update-catalog

@dangrondahl
dangrondahl merged commit a593bd7 into main Aug 18, 2026
5 checks passed
@dangrondahl
dangrondahl deleted the chore/update-catalog branch August 18, 2026 08:44
@dangrondahl dangrondahl mentioned this pull request Oct 23, 2026
5 tasks
dangrondahl added a commit that referenced this pull request Oct 23, 2026
Release prep for **0.6.0**. A draft for now: it gets rebased once #97
(CodeQL) merges, then marked ready.

`npm version minor --no-git-tag-version` moves `package.json`,
`package-lock.json` and the generated `src/version.ts` together.
`manifest.json` gets the version at pack time. Nothing else changes.

## What's in 0.6.0 (since 0.5.0)

### ⚠️ Changes that affect existing setups
- **No configured org (#65).** `KOSLI_ORG` and the Desktop extension's
*Organization* setting are removed. Every org-scoped call names its org
through the execute tools' `org` input, so no request lands in an org
the caller didn't name. An existing config that still sets `KOSLI_ORG`
starts fine and logs that the value is ignored, but calls that relied on
the default are now refused until an org is given.
- **Node ≥ 22 (#38).** It was ≥ 20.

### Fixes
- **Evidence downloads work again (#88, fixes #86).** Since 16 Oct,
every `get_attestation_evidence` call failed: our token was forwarded to
the pre-signed S3 URL. Text files come back as text, and binary files
return a clear error.
- **The `.mcpb` bundle starts on Node 22.0 – 22.6 (#87).** It didn't
before.
- **No known vulnerabilities in the bundled dependencies (#96).** `npm
audit --omit=dev` is clean.

### Features
- **`org` input on the execute tools (#65).**
- **`User-Agent` carries the version (#41):**
`kosli-mcp-server/<version>`.

### Dependencies
- **Runtime:** `@modelcontextprotocol/sdk` 1.29.0 → 1.32.1 (#29, #71,
#79).
- **Dev:** TypeScript 7 (#45), with emitted output byte-identical to
5.9. vitest 5 (#93).
- **Catalog:** regenerated from the OpenAPI spec (#50, #53, #60, #69,
#78).

### Release confidence (CI only)
Typecheck of tests and scripts, a stdio smoke test against `dist/` and
the unzipped bundle (including Node 22.0.0), `mcpb validate`, and
`release.yml` publishing only after every check (#87). There's also a
phased Claude review (#90), Dependabot grouping with a 7-day cooldown,
and CodeQL (#97).

## Checked locally on this branch

- Build, typecheck, 122 tests.
- The smoke test reports `server advertises version 0.6.0`, both from
`dist/` and from the unzipped bundle.
- `kosli-mcp-server-0.6.0.mcpb`: the manifest says 0.6.0 and `mcpb
validate` passes.

## Before tagging (after merge)
- [ ] Rebase onto `main` once #97 merges, then mark ready.
- [ ] Install the 0.6.0 `.mcpb` in Claude Desktop, including an upgrade
over 0.5.0 with an org configured.
- [ ] Run `KOSLI_API_TOKEN=… KOSLI_SMOKE_ORG=<org> npm run smoke` on
`main`.
- [ ] Download one piece of evidence via `get_attestation_evidence`.
- [ ] `git tag -a v0.6.0 -m "v0.6.0" <merge commit> && git push origin
v0.6.0`. `release.yml` does the rest.
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