Repository navigation
edit a custom MCP server's address or token on its page - #383
Merged
Merged
Conversation
…on, its settings and activity kept * PUT /api/orgs/:org/connections/:id/server moves a custom MCP connection to another address, another token, or both, after asking the server there for its tools; a server that asks for a sign-in has it begun, and the callback renews this connection (`fromConnection` in connect-flow.ts) rather than making a new one * the address left out keeps the stored one, its query too; the token left out keeps the current one only while the server stays on its origin, so a token is never sent to another server unasked; null drops it * an address another of the person's connections has, or a built-in service's server, is turned down * GET …/server answers the address without its query, which may hold a key, and how it is signed in to, for the dialog * the connection page has a pencil opening the edit dialog; the desktop app hands a sign-in over to the browser as the connect form does * docs: Change the address or token
hkonsti
force-pushed
the
hkonsti/mcp-server-editing
branch
from
November 25, 2026 22:48
e6b234f to
2646516
Compare
hkonsti
added a commit
that referenced
this pull request
Nov 25, 2026
and #384 left (#390) * read MCP credentials only in the shape they have now; the old shapes only in the data migration, run again for what an instance from before wrote while #384 rolled over * the old shapes, a key as {auth: 'key', key} and a sign-in's tokens bare, move from mcp-credential.ts into unify-credentials.ts: the session reads a built-in integration's credential with builtInCredentialSchema alone * the migration runs again as unify-mcp-credentials-again: an instance from before #384 could still write the old shapes while its deploy rolled over, after the first run was noted as done * Sendable in mcp-session.ts was BuiltInCredential under another name * connect a custom server and move one on its page through one step; withMcpSignIn is withMcpCredential * connectServer in custom/route.ts asks the server for its tools and saves the connection, or begins the sign-in it asks for, for a new connection and for one moved on its page alike; what differs is its Destination * withMcpSignIn sends a token or key as well as a sign-in's access token, so it is withMcpCredential
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.
A custom MCP connection could only be renamed; a server that moved, or a token that changed, meant disconnecting and connecting again, losing every agent's settings. Its page now has a pencil opening Edit the server.
What it does
PUT /api/orgs/:org/connections/:id/serverwith{url?, token?, desktop?}asks the server at the address for its tools before anything is kept, then gives the connection its new credential, account and tools. Its id, name, activity and the settings for the tools still listed stay.fromConnectioninconnect-flow.ts) rather than making a new one beside it.urlleft out keeps the stored address, its query too, which the dialog never shows since it may hold a key.tokenleft out keeps the current token only while the server stays on the same origin, so a token is never sent to another server unasked;nulldrops it.GET …/serveranswers the address without its query and how it is signed in to (none,token,oauth), only for whoever may change the connection.connections/custom-mcp.Testing
bun run typecheck,bun run lint,bun run testpass.null.Open workspace in Conductor