feat(cli): add mcp list, add, auth, and logout commands (#34643)

This commit is contained in:
Aiden Cline 2026-06-30 13:49:07 -05:00 committed by GitHub
commit 0a60662d71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 302 additions and 9 deletions

View file

@ -1,6 +1,8 @@
export * as Mcp from "./mcp"
import { Schema } from "effect"
import { optional } from "./schema"
import { IntegrationID } from "./integration-id"
const Connected = Schema.Struct({ status: Schema.Literal("connected") }).annotate({
identifier: "Mcp.Status.Connected",
@ -36,4 +38,7 @@ export interface Server extends Schema.Schema.Type<typeof Server> {}
export const Server = Schema.Struct({
name: Schema.String,
status: Status,
// Set for remote servers registered as OAuth integrations; lets clients act on the right integration
// without matching by name, which could collide with provider or plugin integrations.
integrationID: optional(IntegrationID),
}).annotate({ identifier: "Mcp.Server" })