Types
DeleteMcpNameAuthResponse = object
- OAuth credentials removed
PostMcpNameAuthResponse = object
- OAuth flow started
Procs
proc deleteMcpNameAuth(client: OpencodeClient; name: string; directory: string = default(string); workspace: string = default(string)): Future[ DeleteMcpNameAuthResponse] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Remove OAuth credentials for an MCP server.
proc getMcp(client: OpencodeClient; directory: string = default(string); workspace: string = default(string)): Future[JsonNode] {. ...stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Get the status of all Model Context Protocol (MCP) servers.
proc postMcp(client: OpencodeClient; directory: string = default(string); workspace: string = default(string); body: PostMcpRequest): Future[ JsonNode] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Dynamically add a new Model Context Protocol (MCP) server to the system.
proc postMcpNameAuth(client: OpencodeClient; name: string; directory: string = default(string); workspace: string = default(string)): Future[ PostMcpNameAuthResponse] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Start OAuth authentication flow for a Model Context Protocol (MCP) server.
proc postMcpNameAuthAuthenticate(client: OpencodeClient; name: string; directory: string = default(string); workspace: string = default(string)): Future[ MCPStatus] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Start OAuth flow and wait for callback (opens browser).
proc postMcpNameAuthCallback(client: OpencodeClient; name: string; directory: string = default(string); workspace: string = default(string); body: PostMcpNameAuthCallbackRequest): Future[ MCPStatus] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
proc postMcpNameConnect(client: OpencodeClient; name: string; directory: string = default(string); workspace: string = default(string)): Future[bool] {. ...stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Connect an MCP server.
proc postMcpNameDisconnect(client: OpencodeClient; name: string; directory: string = default(string); workspace: string = default(string)): Future[bool] {. ...stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Disconnect an MCP server.