Skip to content

Conversation

@sayan-oai
Copy link
Contributor

What

Add JSON Schema generation for config.toml, with checked‑in docs/config.schema.json. We can move the schema elsewhere if preferred (and host it if there's demand).

Add fixture test to prevent drift and just write-config-schema to regenerate on schema changes.

Generate MCP config schema from RawMcpServerConfig instead of McpServerConfig because that is the runtime type used for deserialization.

Populate feature flag values into generated schema so they can be autocompleted.

Tests

Added tests + regenerate script to prevent drift. Tested autocompletions using generated jsonschema locally with Even Better TOML.

jsonschema.mov

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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: e888413dc6

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

@sayan-oai
Copy link
Contributor Author

@codex review this

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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: 08b477fa14

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

Copy link
Collaborator

@jif-oai jif-oai left a comment

Choose a reason for hiding this comment

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

That's cool. We should publish it to some standard directories (and have a gh job for this)
@joshka-oai had some thoughts on this I think

@joshka-oai
Copy link
Collaborator

Yep. Publish a small pointer file to Json-schema.org, then publish this file to our website so we can easily update it in each release. We also need to add a small comment in our config files to point at the schema location (as we use config.toml rather than a more specific name like codex.toml which can be auto detected).

@bolinfest
Copy link
Collaborator

In terms of publishing artifacts, that should be done as part of rust-release.yml or our internal Python script that stamps the tag for a release that triggers rust-release.yml.

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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: f59e49902f

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

@sayan-oai sayan-oai force-pushed the dev/sayan/config-jsonschema branch from c6e0bb9 to 1529cf4 Compare January 10, 2026 11:29
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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: 1529cf44c2

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

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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: 123d2333df

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

@sayan-oai sayan-oai force-pushed the dev/sayan/config-jsonschema branch from 0c40b7b to 13dd199 Compare January 13, 2026 01:07
Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

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

Just some small things, but this LGTM!

@sayan-oai sayan-oai force-pushed the dev/sayan/config-jsonschema branch from 13dd199 to 51e7c7d Compare January 13, 2026 18:06
@sayan-oai sayan-oai merged commit 40e2405 into main Jan 13, 2026
30 of 32 checks passed
@sayan-oai sayan-oai deleted the dev/sayan/config-jsonschema branch January 13, 2026 18:22
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants