AI agents and the command line
noc and the MCP server
Every tool the MCP server (nocturnal-mcp) offers has a noc command that does the same, or a
line here saying why it doesn't. noc acts as the person using Nocturnal (its changes show as
"Command line"); the MCP server acts as an agent, with the access set in Settings › AI agents.
Every noc command prints JSON with --json; a command that only says what it did prints
{"message": "..."}. A command refuses an option it doesn't take, naming the command that takes
it, and changes nothing.
The tests every_mcp_tool_has_a_row_in_the_noc_table (MCP crate) and
every_noc_command_in_the_mcp_table_exists (noc) keep this table and the code in step.
| MCP tool | noc command | Notes |
|---|---|---|
get_workspace | noc spaces | Spaces, Folders, Lists and their ids. noc docs, noc people and noc workspace show the rest of what get_workspace lists. noc has every access, so there's nothing to say about permissions. |
list_tasks | noc task list | --list (an id, or a List's name when only one List has it), --in (a Folder or Space), --status, --text, --assignee, --filter (the same JSON, or - to read it from what's piped in). |
get_task | noc task show | Comments are noc task comments, checklists noc task checklists, links noc task links, files noc task files. |
list_statuses | noc statuses | --list <id or name>. |
list_fields | noc fields | --list <id or name> for a List's fields; noc tags --list for the tags offered there. |
create_task | noc task add | Takes task set's fields: --priority, --start, --due, --estimate, --points, --description, --field <field>=<value>, plus --assignee and --tag. Dates, priority and people are checked before the task is made. |
quick_add_task | noc task quick | noc task parse is preview: true; --list is list_id. |
update_task | noc task set | --name, --assignee and --tag replace the name, the assignees and the tags, as update_task does. noc task rename, noc task assign, noc task tag change one thing at a time. |
set_task_status | noc task status | |
link_tasks | noc task link | remove: true is noc task unlink. |
merge_tasks | noc task merge | |
set_major_incident | noc task major | notify is --notify; end: true is noc task major-end. |
set_task_repeat | noc task repeat | The rule is words: weekly on mon,thu, every 2 weeks from completion, none stops it. |
add_reminder | noc task remind | |
archive_task | noc archive task | unarchive: true is noc unarchive task. |
delete_task | noc task delete | No approval to wait for: noc is the person. |
attach_file | noc task attach | Takes several files. noc task from-files also makes a task from each file, as dropping them on a List does (an email becomes a task with its text and files). |
file_storage | noc file usage | Both give the numbers only. noc file cleanup removes the unused files past the grace period; agents can't. |
add_checklist | noc checklist add | The items are added with noc item add. |
add_checklist_item | noc item add | --under <item id>. |
update_checklist_item | noc item check | noc item uncheck, noc item edit and noc item assign change the rest. |
my_tasks | noc mine | Your tasks, checklist items and threads, open ones; --finished adds finished ones. Mentions of you are in noc notifications. |
my_day | noc today | The person's day by default (the tool's is the agent's); --upcoming, --everyone, --days. |
add_comment | noc task comment | --reply <comment id>, --assignee <who> for a new thread. |
edit_comment | noc comment edit | |
resolve_comment | noc comment resolve | --reopen opens it again. |
assign_comment | noc comment assign | none takes it off them. |
get_doc | noc doc show | noc doc wiki shows a wiki's status. Both say who made the Doc and who has edited it or its pages; --json has them as people. |
read_page | noc page show | --section <heading>. Who made the page and who has edited it: in read_page's text, and as people in noc page show --json (its Markdown stays as it is). |
create_page | noc page add | --doc, --under, --file <md> for its text. |
read_whiteboard | noc board show | The same outline; --json gives every element as stored. noc board add makes a whiteboard. |
add_whiteboard_note | noc board note | --color, --at <x>,<y>. |
connect_whiteboard_items | noc board connect | --label. noc board task <element> --list <list> makes a note into a task. noc board export writes a whiteboard to a file and noc board import makes one from it. |
update_page | noc page write | The text, from --file; noc page rename changes the title. |
set_page_style | noc page style | |
add_to_page | noc page append | --start, --section <heading>. |
replace_page_section | noc page section | --remove-heading. |
list_page_versions | noc page history | noc page version <version> reads one. |
restore_page_version | noc page restore | With parts, noc page restore <version> <part>... puts back only those changed blocks. |
delete_page | noc page delete | No approval to wait for: noc is the person. Both send the page and its subpages to Trash. |
archive_doc | noc archive doc | unarchive: true is noc unarchive doc. noc also brings back a Folder or Space (noc unarchive folder, noc unarchive space). |
react_to_comment | noc comment react | remove: true is noc comment unreact. |
attach_file_to_comment | noc comment attach | |
make_task_from_comment | noc comment task | --list. |
list_templates | noc templates | noc templates task for one kind. |
create_task_from_template | noc template use | --list or --parent, --name. |
create_list_from_template | noc template use | --in, --name, --from <date>. |
create_page_from_template | noc template use | --doc, --under. |
create_doc_from_template | noc template use | --in, --name. |
create_space_from_template | noc template use | --name, --from <date>. |
list_task_types | noc types | --list for those offered in a List. |
set_task_type | noc task type | |
get_approval | noc task approval | |
approve_task | noc task approve | |
send_back_task | noc task send-back | |
start_timer | noc time start | The timer is the command line's own, not an agent's. |
stop_timer | noc time stop | |
log_time | noc time log | --start. |
get_task_time | noc time entries | |
get_page_comments | noc page comments | |
add_page_comment | noc page comment | --reply, --assignee; a comment on a page's words (quote) is noc page quote. |
compare_page_version | noc page changes | With parts, noc page parts <version> lists the changed blocks with their ids. |
list_automations | noc automations | --space, --folder or --list. |
get_automation | noc automation show | Its recent runs (runs) are noc automation log. |
set_automation_enabled | noc automation enable | noc automation disable turns it off. |
fill_ai_field | noc task fill-ai | Both ask the app to fill the field with its model when it's open; refused where the task's AI access is "No AI". Setting an AI field by hand is noc task set --field. |
set_ai_field | noc field edit | --ai-kind, --prompt, --language, --categories, --auto-fill, --reads (subtasks, related, comments, fields, checklists, changes; none or default) and --comments; noc field add --type ai takes them too. |
get_task_activity | noc task activity | |
list_my_changes | none | It shows the calling agent its own sessions (each MCP connection is one), and noc isn't an agent. The person sees everyone's sessions with noc audit (--by me, --by "command line" or an agent's name, --task, --from, --to), each change with noc audit show, and can put changes back with noc audit revert. |
list_roles | noc roles | noc grants shows who has which role where, and noc access <who> what someone may do at a place. Only noc changes roles (noc role add, noc role edit, noc grant, noc ungrant, noc role people): agents can read them, never change them. |
get_organization | noc admin people | For an organization's admins: its people and their role on the whole workspace, and its policies (noc admin policy shows and sets them; agents only read them). An agent doesn't get their emails, computers, what they own or the admin log (noc admin log), which name places it may not be able to read. The organization's AI keys (noc admin ai-key, set on the base from standard input) and each person's AI use (noc admin ai-spend) are for admins in noc only. Inviting, suspending and removing people are for admins only, with no MCP tool: noc admin invite, noc admin token, noc admin suspend, noc admin resume and noc admin remove --to <who> or --trash. |
list_refused_changes | noc sync refused | On a computer that joined another: what the base refused of the changes made here, and why. An agent sees those where it can read. |
undo_refused_change | noc sync undo | Puts a refused change back as the base has it, with what was refused along with it (all for every one); an agent needs write access where each is. |
dismiss_refused_change | noc sync dismiss | Keeps a refused change here as it is and stops it showing; an agent needs write access where the change is. |
get_doc_tags | noc doc tags | |
set_doc_tags | noc doc tag | noc doc untag takes tags off; there's no "replace every tag" in one command. |
search | noc search | --kind, --in, --status, --assignee, --tag, --date, --from, --to, --archived, --wikis, --limit, --offset. |
list_backlinks | noc page backlinks | noc task backlinks for a task. |
list_linked_pages | noc page linked | The same links out and in and synced blocks; --json gives them as data. |
add_task_to_list | noc list include | |
remove_task_from_list | noc list exclude | |
get_list_info | noc list info | |
set_list_info | noc list set | Dates and priority; noc list owners sets the owners. |
reschedule_task | noc reschedule | --start, --due, --shift, --move-waiting. |
get_workload | noc workload | --points, --from, --weeks. |
list_dashboards | noc dashboard list | Read only: dashboards are made and arranged in the app. |
get_dashboard | noc dashboard show | An agent's numbers count only tasks in Lists it can read; noc counts every task. With space, the Space's home dashboard, as noc dashboard home shows it. |
refresh_dashboard_card | noc dashboard refresh | Both ask the app to refresh an AI card with its model when it's open; an agent must read every List the card reads. |
list_goals | noc goal list | --space for one Space's. An agent's progress counts only tasks in Lists it can read; noc counts every task. |
get_goal | noc goal show | |
create_goal | noc goal add | --space, --start, --due, --description. |
update_goal | noc goal set | The same options, and --name; none clears one. |
add_goal_target | noc goal target add | --list, --folder, --space, --field, --task, --start, --current, --target, --done, --filter. |
update_goal_target | noc goal target set | The same options; --done or --not-done. |
remove_goal_target | noc goal target remove | noc goal delete deletes a whole goal; agents leave that to the person. |
list_forms | noc form list | Forms are built in the app. |
get_form | noc form show | |
get_form_responses | noc form responses | |
submit_form | noc form send | noc takes question=value words; several choices separated by commas. Neither sends files. |
move_doc | noc doc move | |
attach_doc | noc doc attach | noc doc detach takes it off. |
duplicate | noc list duplicate | noc folder duplicate and noc doc duplicate copy the others; --with-tasks copies a Folder's or List's tasks too. |
lookup_knowledge | noc knowledge lookup | --doc or --agent (that agent's knowledge base Docs), --limit. Both match by meaning too while the app's index is there, loading the embedding model in their own process on the first lookup that needs it, and mark those sections as related by meaning. noc knowledge index shows the index an agent's session starts with, and noc knowledge missing the pages and sections with no read-when line. |
suggest_articles | noc task articles | Both read the pages of the Docs in the task's Space (the agent's only those it can read), wiki pages first, matching by meaning too while the app's index is there. noc also links one: noc task link-article <task> <page>; an agent adds the page's mention to the description with update_task. |
meaning_status | noc meaning status | Both read the index without the app and write nothing. noc also gives the index file's path, and --json. |
set_read_when | noc knowledge read-when | --section <heading>, --clear; with only a page id it shows the page's lines. Its still_true argument is noc knowledge still-true <page> (--section <heading>); noc knowledge stale <doc> lists the sections possibly out of date, and noc knowledge stale-after <days> sets how long that takes. |
remember | noc memory remember | --kind, --why, --space (needed when more than one Space has memory). Refuses text that looks like a key, token or password, as the tool does. The tool flags a likely contradiction with another entry as a conflict, since an agent wrote it; noc, as the person, names entries it may repeat. |
recall | noc memory recall | --space, --kind, --limit, and --agent <name> for only what that agent can read. noc memory show <entry> shows one entry with its session, noc memory list every entry, and noc memory index the lines an agent's session starts with. |
update_memory | noc memory update | --text, --kind, --why. Its still_true argument is noc memory still-true <entry>; noc memory stale lists the entries possibly out of date. |
forget | noc memory forget | Archives the entry; noc unarchive task <entry> brings it back. |
link_project_folder | noc project link | <folder> --space <name>; noc runs as the person, so it needs no permission. noc project list shows the linked folders and the ones suggested by name, and noc project unlink <folder> takes one away. noc project scan <parent> and noc project setup <parent> --link --hook --map folder=Space are the app's "Set up project folders…", which has no MCP tool: it's the person's own setup of their folders and Claude Code settings. |
create_space | noc space add | |
create_folder | noc folder add | --in <Space or Folder id>. |
create_list | noc list add | --in <Space or Folder id>; without it, the Inbox's Space. |
create_doc | noc doc add | --in <Space or Folder id>, or --in standalone. |
add_field | noc field add | --type, --space, --folder or --list for the place (the tool takes place_id and works out which), and each setting as a flag: --options "A, B", --currency, --rollup, --ai-kind and the rest. |
rename_item | noc space rename | noc folder rename, noc list rename and noc doc rename rename the others. |
move_item | noc folder move | noc list move and noc space move move the others (--in, --before). noc has no AI access check to pass: it's the person. |
What noc does that the MCP server doesn't
noc also manages the workspace itself: Spaces, Folders and Lists (adding, moving, statuses,
views), people, custom fields and tags, task types and approval rules, automations (adding and
editing), templates (saving them), export, backups and restores, imports from ClickUp and
Markdown, Trash, putting changes back from the audit log, and wikis. It also switches an agent's
knowledge base help on or off and chooses its Docs (noc knowledge agent), as Settings › AI agents
does, and adds Claude Code's knowledge hook to a project or takes it out (noc knowledge hook
install|remove <folder> --agent <name>). It switches an agent's project memory on or off (noc memory agent
<agent> on|off), as Settings › AI agents does; noc memory itself runs as the person, so it
works whether or not an agent's memory is on. As the Memory view and Settings › Import do, it
imports memory (noc memory import <folder or file> --space), exports a Space's memory as a Claude
Code memory folder (noc memory export --space <name> <folder>), prints the lines for a repo's
CLAUDE.md or AGENTS.md (noc memory snippet), lists and settles conflicts between entries (noc
memory conflicts, noc memory settle), marks an entry wrong (noc memory wrong), and shows the
review queue (noc memory review). The hook itself runs noc knowledge hook, which applies
the agent's access and AI access as the MCP server would.
noc shows and sets AI access (noc ai access, noc ai default) and where an agent's model runs
(noc ai agent), but isn't limited by it: it runs as the person and sees everything, items set to
"No AI" or "Only AI on this PC" included. So noc knowledge index --agent lists every Doc chosen
for that agent, even one AI access hides from it; the agent's own session leaves those out.
noc ask <question> answers a question from the Docs and tasks with the model Docs writing uses on
this computer, citing its sources ([1], with a nocturnal:// link to each); --in <Space, List or Doc
id> looks only there, and --json gives the answer, the passages sent and what was left out. Unlike
the rest of noc it sends workspace content to a model, so it follows AI access as the app's Ask does:
only passages whose AI access allows that model are sent, and it says how many were left out.
Like the app's Ask, it also finds passages by meaning while the app's index is there (see noc meaning status).
There's no MCP tool for it: an agent is a model already, and reads the same passages with
search and lookup_knowledge.
noc ai usage shows this computer's cloud AI use (Anthropic, OpenAI, Gemini) by month, provider and
model for the last year, with an estimated cost from the price list shipped with the release (and
the date it was checked) or prices set in Settings › AI providers, which win; --json gives the
counts in micro-dollars. It's read only, and an estimate: the provider's console is what's billed.
Models with no price show their tokens and "no price". There's no MCP tool for it: the counts are
this computer's, not the workspace's.