Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Emanuele-web04/dpcode/llms.txt

Use this file to discover all available pages before exploring further.

The server methods expose configuration, runtime diagnostics, provider management, voice transcription, and keybinding management. Related provider discovery and workspace methods are also documented here. All methods follow the WebSocket protocol.

server.getConfig

Retrieve the current server configuration, including provider statuses, keybindings, and config validation issues.

Parameters

No parameters required.

Response (ServerConfig)

cwd
string
required
Server working directory.
homeDir
string
Server home directory, if configured.
worktreesDir
string
required
Directory where managed worktrees are stored.
keybindingsConfigPath
string
required
Path to the keybindings config file.
keybindings
object
required
Resolved keybindings configuration.
issues
object[]
required
Array of config validation issues.
providers
object[]
required
Array of ServerProviderStatus objects (see server.refreshProviders).
availableEditors
string[]
required
List of detected editor identifiers (e.g. "vscode", "cursor").

server.getEnvironment

Retrieve the server’s execution environment descriptor.

Parameters

No parameters required.

Response

Returns an ExecutionEnvironmentDescriptor object describing the current runtime environment (OS, architecture, and environment-specific metadata).

server.getSettings

Retrieve current server settings.

Parameters

No parameters required.

Response

Returns a ServerSettings object containing all user-configurable settings.

server.updateSettings

Update one or more server settings. Accepts a partial patch — only the fields you include are changed.

Parameters

(settings patch fields)
object
A ServerSettingsPatch — a partial object containing any subset of the ServerSettings fields you want to update.

Response

Returns the updated ServerSettings object.

server.refreshProviders

Probe all registered providers and refresh their health and auth status.

Parameters

No parameters required.

Response

providers
object[]
required
Updated array of ServerProviderStatus objects (same as in server.getConfig).

server.updateProvider

Trigger an update for a specific provider CLI binary.

Parameters

provider
string
required
Provider kind to update. One of: "codex", "claudeAgent", "cursor", "gemini", "grok", "kilo", "opencode", "pi".

Response

Returns updated providers array (same as server.refreshProviders).

Errors

Returns a ServerProviderUpdateError with provider and reason fields if the update fails.

server.getProviderUsageSnapshot

Retrieve usage statistics for a specific provider.

Parameters

provider
string
required
Provider kind to query.
homePath
string
Optional provider home path override.

Response

Returns ServerProviderUsageSnapshot | null.
provider
string
required
updatedAt
string
required
limits
object[]
required
usageLines
object[]
required
Human-readable usage lines. Each has label, value, and optional subtitle.
source
string
required
Where the usage data was fetched from.

server.getDiagnostics

Retrieve server diagnostics including process memory usage and child process inventory.

Parameters

No parameters required.

Response

generatedAt
string
required
process
object
required
childProcesses
object[]
required
Up to 80 child processes. Each has pid, ppid, rssBytes, virtualSizeBytes, command, and args (sensitive values redacted).
childProcessTotalCount
number
required
childProcessTotalRssBytes
number
required
projection
object
required
{ projectCount, threadCount } — counts from the orchestration projection.

server.transcribeVoice

Transcribe an audio recording to text using a provider’s voice transcription API.

Parameters

provider
string
required
Provider to use for transcription (must have voiceTranscriptionAvailable: true).
cwd
string
required
Working directory context.
threadId
string
Optional thread context for the transcription.
mimeType
string
required
MIME type of the audio data (e.g. "audio/webm"). Max 100 characters.
sampleRateHz
number
required
Sample rate of the audio in Hz.
durationMs
number
required
Duration of the audio in milliseconds.
audioBase64
string
required
Base64-encoded audio data. Max ~14 MB encoded.

Response

text
string
required
Transcribed text.

server.upsertKeybinding

Add or update a keybinding rule. Returns the full updated keybindings configuration.

Parameters

command
string
required
Command identifier the keybinding should trigger.
key
string
required
Key combination (e.g. "ctrl+shift+p").
when
string
Optional context expression that must be true for the keybinding to activate.

Response

keybindings
object
required
Resolved keybindings configuration after the upsert.
issues
object[]
required
Any validation issues found in the keybindings file after writing.

server.subscribeLifecycle

Streaming. Subscribe to server lifecycle events. The server emits a welcome event immediately, followed by ready when initialization is complete, and maintenance events during background maintenance tasks.

Parameters

No parameters required.

Stream items (ServerLifecycleStreamEvent)

type
string
required
One of: "welcome", "ready", "maintenance".
payload
object
required

server.subscribeConfig

Streaming. Subscribe to server configuration changes. The server emits a snapshot first with the full config, then streams incremental update events.

Parameters

No parameters required.

Stream items (ServerConfigStreamEvent)

typeDescription
snapshotFull ServerConfig in config field — emitted once on subscribe.
configUpdatedpayload: { issues, providers } — config issues or provider statuses changed.
providerStatusespayload: { providers } — provider health refreshed.
settingsUpdatedpayload: { settings } — settings changed.

server.subscribeProviderStatuses

Streaming. Subscribe to provider status updates. Each stream item contains the full updated providers array.

Parameters

No parameters required.

Stream items

providers
object[]
required
Updated ServerProviderStatus array.

server.subscribeSettings

Streaming. Subscribe to settings changes. Emits a current snapshot first, then emits whenever settings are updated.

Parameters

No parameters required.

Stream items

settings
object
required
Current ServerSettings object.

provider.getComposerCapabilities

Retrieve what capabilities a provider’s composer supports (e.g. streaming, file attachments, skills).

Parameters

provider
string
required
Provider kind.

Response

Returns a ProviderComposerCapabilities object describing the provider’s feature set.

provider.compactThread

Compact a thread’s conversation history to reduce token usage on the next turn.

Parameters

threadId
string
required
Thread to compact.

Response

Returns void on success.

provider.listCommands

List available slash commands for a provider.

Parameters

provider
string
required
cwd
string
required

Response

Returns a ProviderListCommandsResult with an array of command definitions.

provider.listSkills

List available skills (tools/capabilities) for a provider.

Parameters

provider
string
required
cwd
string
required

Response

Returns a ProviderListSkillsResult with an array of skill definitions.

provider.listPlugins

List available plugins for a provider.

Parameters

provider
string
required
cwd
string
required

Response

Returns a ProviderListPluginsResult with an array of plugin identifiers and metadata.

provider.readPlugin

Read the content or configuration of a specific plugin.

Parameters

provider
string
required
cwd
string
required
pluginId
string
required

Response

Returns a ProviderReadPluginResult with the plugin definition.

provider.listModels

List available models for a provider.

Parameters

provider
string
required
cwd
string
required

Response

Returns a ProviderListModelsResult with an array of model identifiers and metadata.

provider.listAgents

List available agents for a provider.

Parameters

provider
string
required
cwd
string
required

Response

Returns a ProviderListAgentsResult with an array of agent definitions.

Workspace methods

These methods provide file and directory access within project workspaces.

projects.listDirectories

List directories within a project’s workspace.
projectId
string
required
path
string
Subdirectory path relative to the workspace root.
Returns a ProjectListDirectoriesResult with an array of directory entries.

projects.searchEntries

Search for files and directories within a project using a query string.
projectId
string
required
query
string
required
Returns a ProjectSearchEntriesResult with matching entries.

projects.searchLocalEntries

Search for files and directories using the local filesystem index.
projectId
string
required
query
string
required
Returns a ProjectSearchLocalEntriesResult with matching entries.

projects.writeFile

Write content to a file within a project workspace.
projectId
string
required
path
string
required
File path relative to the workspace root.
content
string
required
Returns a ProjectWriteFileResult confirming the write.

filesystem.browse

Browse the server filesystem at a given path.
path
string
required
Absolute path to browse.
Returns a FilesystemBrowseResult with directory entries and metadata.

shell.openInEditor

Open a file or directory in the user’s configured editor.
path
string
required
Absolute path to open.
editorId
string
Specific editor to use. If omitted, the default configured editor is used.
Returns void on success.

Build docs developers (and LLMs) love