GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(mcpx): declared OpenAPI APIs are first-class servers (#2118) by dezren39 · Pull Request #2514 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

What

Slice of #2118 (split of #1875): declared OpenAPI APIs are now first-class namespaces, not extras-only.

Verified at base 7d1b081: adapters (augmentAdapters) and plugins (augmentPlugins) are added to cfg.MCPServers by augmentConfig, so they reach the pool, ls, types, search, catalog, /v1 and generated clients. Declared APIs had no augment — apiTools() was only appended to srv.WithExtras(...), so OpenAPI tools reached mcpx's own tools/list and nothing else (the exact extras-only gap adapters had before #83/#102).

Changes

  • mcpx api serve <name> [file...] — one declared API as a stdio MCP server, mirroring mcpx adapter serve; files after the name replace paths.apis so the daemon names exactly the declarations it meant.
  • augmentAPIs wired into augmentConfig: every declared API becomes a server (mcpx api serve <name> <abs declaration files>) under its own name; name collisions with a configured server/adapter refuse rather than shadow; an unnamed declaration refuses with the reason. Reload re-runs the augment, so an API added to a paths.apis file appears with the reload — the same live semantics adapters get.
  • Refactors (no behavior change): loadAPIs → loadAPIFiles(paths); apiTools → apiExtras(ctx, specs) over explicit declarations.

Tests

New internal/cli/openapi_augment_test.go:

  • TestAugmentAPIsAddsServer — a declared API becomes a server with args api serve <name> <abs file>.
  • TestAugmentAPIsRefusesNameCollision — collision with a configured server refuses.
  • TestAPIExtrasNamesToolsForTheAPI — a fixture spec's operations surface as petstore_listpets extras (the serve path's tool builder).

Laptop verification before opening: go test ./internal/cli/ ./internal/openapi/ pass (cli 15.1s). go test ./internal/daemon/ fails with signal: terminated — reproduced identically on clean main 7d1b081, so it is a pre-existing laptop-environment failure, not this change (daemon does not import cli). CI is the gate for the full suite.

Remaining in #2118 (not this PR)

Generalised live add (POST/DELETE for adapters / API specs / recipes mirroring /v1/servers) and generated declarations for bare binaries (mcpx adapter generate) remain on queue task 3104, parked with a resume brief naming the storage map (servers → config mcpServers; adapters → paths.adapters files; APIs → paths.apis files; recipes → recipes.Dirs .ts files).

Refs #2118, #1875. Queue task 3104.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
feat(mcpx): declared OpenAPI APIs are first-class servers (#2118)
dacb838
@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 02:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T02:57:31.367378Z 6ea5d20 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b2bccfaa-89f6-4a03-be3e-e7dfe015509e
Commits

Reviewing files that changed from the base of the PR and between 7d1b081 and c09de0f.

Files selected for processing: 4
  • pkgs/mcpx/internal/cli/openapi_augment_test.go
  • pkgs/mcpx/internal/cli/openapi_tools.go
  • pkgs/mcpx/internal/cli/plugin.go
  • pkgs/mcpx/internal/settings/scriptenv.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Oct 30, 2026
mcpx: generalised live add + generated declarations for bare binaries (split of #1875) #2118
Closed
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 30, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dacb8382fb

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/internal/cli/plugin.go Outdated
Comment on lines +112 to +113
Args: append([]string{"api", "serve", s.Name}, files...),
Mcpx: &config.Extras{Description: s.Description},

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Include API declaration changes in the server's process identity

Once an API child is running, editing its declaration's baseUrl, headers, spec path, or operation filters and reloading leaves the old behavior active. These server arguments contain only the API name and declaration file paths, so config.Resolved.ProcessID() remains unchanged; Registry.Reload consequently retains the existing pool, child, and cached schemas. Include a fingerprint of the effective declaration in the process definition so reload replaces the affected API child instead of continuing to call the previous endpoint or expose removed operations.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Oct 30, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in the follow-up commit: augmentAPIs now stamps the server env with MCPX_API_DECLARATION_SHA256 — a hash of the APISpec as written (headers carry ${VAR} references, never values) plus the spec bytes when the spec is a local file. PoolID hashes the environment, so editing baseUrl/headers/spec/filters and reloading replaces the API pool instead of retaining the stale child. TestAugmentAPIsAddsServer now asserts the fingerprint is present. (Adapters have the same staleness shape via their files; noted in the code comment as #2118 follow-up material rather than silently expanding this PR.)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/internal/cli/openapi_tools.go Outdated
Comment on lines +207 to +208
if len(fs.Args()) > 1 {
loaded, lerr := loadAPIFiles(fs.Args()[1:])

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Bypass default declarations when explicit serve files are supplied

When the parent uses --config to select valid declarations but the child's discovered config names a missing or invalid paths.apis file, the generated API server cannot start despite receiving valid absolute declaration paths. CmdAPI calls a.loadAPIs() before reaching this override and returns its error immediately, while augmentAPIs does not forward the parent's config selection. Select the explicit serve files before loading declarations so unrelated child defaults cannot prevent the requested API from serving.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Oct 30, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in the follow-up commit: CmdAPI now selects explicit serve files before any default loading — when sub is serve and file arguments are present, specs come from loadAPIFiles(those files) and loadAPIs() is never called, so a child whose discovered config names a missing/invalid paths.apis file can still serve the API the daemon asked for. The serve case no longer re-loads after the fact.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
fix(mcpx): Codex review — declaration fingerprint in API pool identit…
6ea5d20
…y; explicit serve files bypass default declarations (#2118)
@github-actions github-actions Bot assigned dezren39 Oct 30, 2026
@dezren39
fix(mcpx): declare MCPX_API_DECLARATION_SHA256 in ScriptEnv (#2118)
c09de0f
The declared-API child gets the declaration fingerprint in its
environment (PoolID hashes the env, so a changed declaration replaces
the pool). ScriptEnv must name every variable the code writes into a
child's environment; TestTheScriptEnvironmentIsWhatTheCodeSets caught
the missing entry.
@dezren39

dezren39 commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Pushed c09de0f9: ScriptEnv now declares MCPX_API_DECLARATION_SHA256 (the basic: test failure this branch caused — TestTheScriptEnvironmentIsWhatTheCodeSets). The other two failures in that job are pre-existing on main (TestEveryDocumentationLinkResolves, TestEveryDocumentHasAChapter — #2552), so basic: test stays red here until main's doc drift is repaired. Queue task 3104 parked with that resume condition.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit c56c25d into main Oct 30, 2026
7 of 8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/3104-2118-openapi-first-class branch October 30, 2026 04:30
This was referenced Oct 30, 2026
feat(mcpx): live add/remove for adapter declarations (#2118) #2565
Merged
mcpx: anything as an MCP server -- scripts, bare binaries, recipes, plugins, as first-class namespaces #1875
Closed
feat(mcpx): live API-spec add/remove over /v1 + CLI parity (#2118 item a) #4637
Merged
This was referenced Nov 23, 2026
unify(quota-plane): one quota read path — server endpoint, CLI, and aggregator gatherer must share the direct credential-store read #2490
Open
chore(flake): bump openchamber pin 683121ce -> 88ca37a75 (#2490) #13130
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.