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 toolnoc commandNotes
get_workspacenoc spacesSpaces, 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_tasksnoc 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_tasknoc task showComments are noc task comments, checklists noc task checklists, links noc task links, files noc task files.
list_statusesnoc statuses--list <id or name>.
list_fieldsnoc fields--list <id or name> for a List's fields; noc tags --list for the tags offered there.
create_tasknoc task addTakes 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_tasknoc task quicknoc task parse is preview: true; --list is list_id.
update_tasknoc 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_statusnoc task status
link_tasksnoc task linkremove: true is noc task unlink.
merge_tasksnoc task merge
set_major_incidentnoc task majornotify is --notify; end: true is noc task major-end.
set_task_repeatnoc task repeatThe rule is words: weekly on mon,thu, every 2 weeks from completion, none stops it.
add_remindernoc task remind
archive_tasknoc archive taskunarchive: true is noc unarchive task.
delete_tasknoc task deleteNo approval to wait for: noc is the person.
attach_filenoc task attachTakes 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_storagenoc file usageBoth give the numbers only. noc file cleanup removes the unused files past the grace period; agents can't.
add_checklistnoc checklist addThe items are added with noc item add.
add_checklist_itemnoc item add--under <item id>.
update_checklist_itemnoc item checknoc item uncheck, noc item edit and noc item assign change the rest.
my_tasksnoc mineYour tasks, checklist items and threads, open ones; --finished adds finished ones. Mentions of you are in noc notifications.
my_daynoc todayThe person's day by default (the tool's is the agent's); --upcoming, --everyone, --days.
add_commentnoc task comment--reply <comment id>, --assignee <who> for a new thread.
edit_commentnoc comment edit
resolve_commentnoc comment resolve--reopen opens it again.
assign_commentnoc comment assignnone takes it off them.
get_docnoc doc shownoc 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_pagenoc 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_pagenoc page add--doc, --under, --file <md> for its text.
read_whiteboardnoc board showThe same outline; --json gives every element as stored. noc board add makes a whiteboard.
add_whiteboard_notenoc board note--color, --at <x>,<y>.
connect_whiteboard_itemsnoc 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_pagenoc page writeThe text, from --file; noc page rename changes the title.
set_page_stylenoc page style
add_to_pagenoc page append--start, --section <heading>.
replace_page_sectionnoc page section--remove-heading.
list_page_versionsnoc page historynoc page version <version> reads one.
restore_page_versionnoc page restoreWith parts, noc page restore <version> <part>... puts back only those changed blocks.
delete_pagenoc page deleteNo approval to wait for: noc is the person. Both send the page and its subpages to Trash.
archive_docnoc archive docunarchive: true is noc unarchive doc. noc also brings back a Folder or Space (noc unarchive folder, noc unarchive space).
react_to_commentnoc comment reactremove: true is noc comment unreact.
attach_file_to_commentnoc comment attach
make_task_from_commentnoc comment task--list.
list_templatesnoc templatesnoc templates task for one kind.
create_task_from_templatenoc template use--list or --parent, --name.
create_list_from_templatenoc template use--in, --name, --from <date>.
create_page_from_templatenoc template use--doc, --under.
create_doc_from_templatenoc template use--in, --name.
create_space_from_templatenoc template use--name, --from <date>.
list_task_typesnoc types--list for those offered in a List.
set_task_typenoc task type
get_approvalnoc task approval
approve_tasknoc task approve
send_back_tasknoc task send-back
start_timernoc time startThe timer is the command line's own, not an agent's.
stop_timernoc time stop
log_timenoc time log--start.
get_task_timenoc time entries
get_page_commentsnoc page comments
add_page_commentnoc page comment--reply, --assignee; a comment on a page's words (quote) is noc page quote.
compare_page_versionnoc page changesWith parts, noc page parts <version> lists the changed blocks with their ids.
list_automationsnoc automations--space, --folder or --list.
get_automationnoc automation showIts recent runs (runs) are noc automation log.
set_automation_enablednoc automation enablenoc automation disable turns it off.
fill_ai_fieldnoc task fill-aiBoth 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_fieldnoc 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_activitynoc task activity
list_my_changesnoneIt 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_rolesnoc rolesnoc 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_organizationnoc admin peopleFor 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_changesnoc sync refusedOn 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_changenoc sync undoPuts 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_changenoc sync dismissKeeps a refused change here as it is and stops it showing; an agent needs write access where the change is.
get_doc_tagsnoc doc tags
set_doc_tagsnoc doc tagnoc doc untag takes tags off; there's no "replace every tag" in one command.
searchnoc search--kind, --in, --status, --assignee, --tag, --date, --from, --to, --archived, --wikis, --limit, --offset.
list_backlinksnoc page backlinksnoc task backlinks for a task.
list_linked_pagesnoc page linkedThe same links out and in and synced blocks; --json gives them as data.
add_task_to_listnoc list include
remove_task_from_listnoc list exclude
get_list_infonoc list info
set_list_infonoc list setDates and priority; noc list owners sets the owners.
reschedule_tasknoc reschedule--start, --due, --shift, --move-waiting.
get_workloadnoc workload--points, --from, --weeks.
list_dashboardsnoc dashboard listRead only: dashboards are made and arranged in the app.
get_dashboardnoc dashboard showAn 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_cardnoc dashboard refreshBoth 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_goalsnoc goal list--space for one Space's. An agent's progress counts only tasks in Lists it can read; noc counts every task.
get_goalnoc goal show
create_goalnoc goal add--space, --start, --due, --description.
update_goalnoc goal setThe same options, and --name; none clears one.
add_goal_targetnoc goal target add--list, --folder, --space, --field, --task, --start, --current, --target, --done, --filter.
update_goal_targetnoc goal target setThe same options; --done or --not-done.
remove_goal_targetnoc goal target removenoc goal delete deletes a whole goal; agents leave that to the person.
list_formsnoc form listForms are built in the app.
get_formnoc form show
get_form_responsesnoc form responses
submit_formnoc form sendnoc takes question=value words; several choices separated by commas. Neither sends files.
move_docnoc doc move
attach_docnoc doc attachnoc doc detach takes it off.
duplicatenoc list duplicatenoc folder duplicate and noc doc duplicate copy the others; --with-tasks copies a Folder's or List's tasks too.
lookup_knowledgenoc 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_articlesnoc task articlesBoth 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_statusnoc meaning statusBoth read the index without the app and write nothing. noc also gives the index file's path, and --json.
set_read_whennoc 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.
remembernoc 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.
recallnoc 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_memorynoc 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.
forgetnoc memory forgetArchives the entry; noc unarchive task <entry> brings it back.
link_project_foldernoc 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_spacenoc space add
create_foldernoc folder add--in <Space or Folder id>.
create_listnoc list add--in <Space or Folder id>; without it, the Inbox's Space.
create_docnoc doc add--in <Space or Folder id>, or --in standalone.
add_fieldnoc 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_itemnoc space renamenoc folder rename, noc list rename and noc doc rename rename the others.
move_itemnoc folder movenoc 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.