Working in a dohc workspace

dohc keeps files, Markdown documents, structured Collections, automations, chat, and small web apps in one local-first workspace with History and Versions. Every user action runs through the same operations in the desktop app, the dohc CLI, and the dohc MCP server.

Before your first call

  1. Through MCP, dohc_dataset, dohc_collection_access, and dohc_publish_app fill in workspaceId for the workspace the server serves. The CLI needs it: read it from the dohc://workspace/info resource, dohc_list_workspaces, or workspaceId in .dohc/manifest.json at the workspace root. Never guess "local".
  2. Keep the dohc desktop app open for writes, Collections, apps, chat, and Versions.
  3. For Markdown files (.md), use dohc_create_document, dohc_read_document, and dohc_edit_document. dohc_write_file refuses Markdown documents because live documents own their text.
  4. For drawings (.excalidraw), use dohc_create_drawing, dohc_read_drawing, and dohc_edit_drawing. An open canvas shows each edit at once.

Core building tools

The desktop MCP server registers over 75 tools, most of them for sync recovery, live-document quarantine, and sharing administration. Start with these core building tools:

GoalPrimary MCP toolCLI equivalent
Check workspace role and live sync statusdohc_workspace_statusdohc workspace status
Recall context across pages, Collections, records, and chatdohc_search_workspacedohc workspace search <query>
Explore filesdohc_list_files, dohc_read_file, dohc_search_files(use workspace files directly)
Write non-Markdown files (code, YAML, JSON)dohc_write_file(use workspace files directly)
Create, read, and edit Markdown documentsdohc_create_document, dohc_read_document, dohc_edit_documentdohc document create|read|edit
Create, read, and edit drawingsdohc_create_drawing, dohc_read_drawing, dohc_edit_drawing`dohc drawing create
Work with document Collections (collection.yaml)dohc_query_collection, dohc_create_record, dohc_set_record_fieldsdohc document set-fields
Create, approve, migrate, and invoke transactional Collections (dataset.json)dohc_datasetdohc dataset <verb> '<JSON>'
Scaffold, stage, verify, and publish web apps (app.publish.json)dohc_create_app, dohc_publish_app (in a workspace you own, verifyFrontend runs the app; readiness shows what a workspace app gives each member)dohc app <verb> '<JSON>'
Import CSV/JSON and query SQLitedohc_import_data, dohc_query_database(MCP only)
Check and change Collection automations (automations.yaml)dohc_list_automations, then edit automations.yaml with dohc_write_file. In a workspace shared with you at Edit, dohc_switch_automation turns one on or offdohc automation list|switch
Let a website form or another service add records to a CollectionIn a synced workspace you own: dohc_read_automation_host, dohc_use_server_for_automations, then dohc_create_incoming_webhook. dohc_list_incoming_webhooks before you retry, and dohc_update_incoming_webhook, dohc_rotate_incoming_webhook, or dohc_delete_incoming_webhook to manage one. See references/automations.mddohc automation host|use-server, dohc webhook list|create|update|rotate|delete
Post or reply in Groups and file commentsdohc_list_groups, dohc_start_group_chat, dohc_start_file_chat, dohc_reply_to_chatdohc chat groups|post|reply
Try multi-file workspace drafts in a Version (not for app iteration)dohc_create_version, dohc_compare_version, dohc_merge_versiondohc version create|compare|merge

Choose the right data model

Give each page and app an icon

When you create a page or an app, give it one emoji that fits it. Explorer and Home show it in place of the generic glyph, so people can find work at a glance.

Detailed references

Read the matching reference before authoring schemas, apps, or automations:

Common pitfalls