Fix OpenAPI docs server URL to match actual listen address#2916
Open
themightychris wants to merge 1 commit intoanyproto:developfrom
Open
Fix OpenAPI docs server URL to match actual listen address#2916themightychris wants to merge 1 commit intoanyproto:developfrom
themightychris wants to merge 1 commit intoanyproto:developfrom
Conversation
3 tasks
themightychris
added a commit
to themightychris/anytype-heart
that referenced
this pull request
Feb 1, 2026
themightychris
added a commit
to themightychris/anytype-heart
that referenced
this pull request
Feb 2, 2026
6f67ab9 to
cdfad01
Compare
themightychris
added a commit
to themightychris/anytype-heart
that referenced
this pull request
Feb 2, 2026
themightychris
added a commit
to themightychris/anytype-heart
that referenced
this pull request
Feb 2, 2026
themightychris
added a commit
to themightychris/anytype-heart
that referenced
this pull request
Feb 3, 2026
The OpenAPI spec was hardcoded to http://127.0.0.1:31009 but anytype-cli runs on port 31012 by default. Now the server URL in the OpenAPI docs is dynamically updated to match the actual listen address. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
cdfad01 to
009f246
Compare
themightychris
added a commit
to themightychris/anytype-heart
that referenced
this pull request
Feb 3, 2026
themightychris
added a commit
to themightychris/anytype-heart
that referenced
this pull request
Feb 3, 2026
deff7
approved these changes
Feb 10, 2026
Member
|
Hi @themightychris! Thank you for your contribution |
Member
|
@themightychris you need to sign your commits before we can merge your code. Please, check this https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits |
Author
|
@deff7 thanks! will update all my PRs sometime this week |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The OpenAPI specification was hardcoded to http://127.0.0.1:31009 but anytype-cli runs on port 31012 by default.
This PR updates the OpenAPI 3.1.0 spec to dynamically set the server URL (
servers[0].url) to match the actual listen address.Changes:
core/api/service.goto update the server URL in embedded OpenAPI docs--listen-addressor default settingsservers[0].urlinstead of legacy Swagger 2.0hostfield)This is needed for
anytime-mcpto be able to work with theanytype-cli-hosted endpoint out of the box