Skip to main content

Documentation Index

Fetch the complete documentation index at: https://hubify.com/docs/llms.txt

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

MCP Tools Reference

The Hubify MCP server exposes 48 tools across two categories:
CategoryCountPrefixUse for
Platform tools31noneReading and writing lab data directly
Phase E ledger tools17hubify_Writing to the agentEvents ledger; surfaces in Captain View
All tools work without authentication for both read and write operations when the MCP server is configured with CONVEX_URL and HUBIFY_LAB_SLUG.

Platform Tools

Lab Navigation

lab_create

Create a new lab and automatically provision a matching GitHub repository. If the user has a connected GitHub account, the repo is created in their own account. Otherwise it is created in the Hubify-Projects org.
ParameterTypeRequiredDescription
userIdstringYesConvex user ID
namestringYesLab name (used as repo name base)
descriptionstringNoShort description
missionstringNoMission statement
subdomainstringNoURL subdomain (auto-derived from name if omitted)
isPublicbooleanNoWhether the lab and repo are public (default: true)
Returns: { labId, repoUrl }repoUrl is null if GitHub repo creation failed (lab is still created).

lab_status

Get a snapshot of the current lab: experiment count, paper count, agent count, pod count, anomaly count. No parameters.

lab_list

List every lab on this Convex deployment with slug, name, status, and which is currently active. No parameters.

lab_switch

Hot-swap the active lab for the current MCP session without restarting.
ParameterTypeRequiredDescription
slugstringNoLab slug to switch to. Omit to reset to the env-configured default.

Experiments

experiment_list

List experiments with status, title, and runtime.
ParameterTypeRequiredDescription
statusstringNoFilter: queued, running, pass, fail, blocked

experiment_create

Create and queue a new experiment (auto-generates EXP-NNN ID).
ParameterTypeRequiredDescription
titlestringYesExperiment title
configstringNoJSON config string (hyperparameters, etc.)
templatestringNoTemplate name to base the experiment on
computeModestringNogpu, cpu, or distributed. Default: gpu

experiment_run

Dispatch a queued experiment to a GPU pod. Accepts EXP-* ID or Convex document _id.
ParameterTypeRequiredDescription
experimentIdstringYesEXP-BB-001 or Convex _id
podIdstringNoTarget pod ID. Auto-picks a running pod if omitted.

experiment_queue

List queued and running experiments. No parameters.

Papers

paper_list

List all papers with readiness percentages and status. No parameters.

paper_create

Create a new paper draft.
ParameterTypeRequiredDescription
titlestringYesPaper title
abstractstringNoPaper abstract
targetstringNoTarget journal (e.g. Physical Review D, MNRAS)
statusstringNodraft, review, submitted, published. Default: draft

paper_review

Trigger a cross-model peer review on a paper via the orchestrator.
ParameterTypeRequiredDescription
paperNamestringYesPaper name or title

Tasks

task_list

List tasks with status and priority.
ParameterTypeRequiredDescription
statusstringNoFilter: backlog, todo, in_progress, review, done

task_create

Create a new task.
ParameterTypeRequiredDescription
titlestringYesTask title
descriptionstringNoTask details
prioritystringNolow, medium, high, urgent. Default: medium
statusstringNoInitial status. Default: todo

task_update

Update task status or priority.
ParameterTypeRequiredDescription
taskIdstringYesConvex task _id
statusstringNoNew status
prioritystringNoNew priority

Memory & Knowledge

Search across all 4 memory layers: user messages, agent learnings, knowledge wiki, and lab decisions.
ParameterTypeRequiredDescription
querystringYesSearch query
layerstringNouser, agent, lab, decisions, or all. Default: all

memory_save

Save to the lab memory system.
ParameterTypeRequiredDescription
typestringYespreference, decision, or message
keystringConditionalRequired for preference type
valuestringConditionalRequired for preference type
titlestringConditionalRequired for decision type
decisionstringConditionalRequired for decision type
rationalestringConditionalRequired for decision type
contentstringConditionalRequired for message type
summarystringNoOne-line summary for message type

Full-text search across the lab’s knowledge base: experiments, papers, agents, surveys, knowledge entries.
ParameterTypeRequiredDescription
querystringYesSearch query

knowledge_add

Add an entry to the lab’s knowledge wiki.
ParameterTypeRequiredDescription
namestringYesEntry name (e.g. Hellings-Downs Correlation)
entityTypestringYesconcept, entity, source, method, result, or dataset
descriptionstringNoEntry description
relatedEntitiesstring[]NoRelated entity names

agent_learning_save

Save an operational or scientific learning to agent memory.
ParameterTypeRequiredDescription
keystringYesShort unique key (e.g. mcmc-convergence-criteria)
insightstringYesWhat was learned — specific and actionable
typestringNooperational, scientific, procedural. Default: operational
confidencenumberNoConfidence 0–1. Default: 0.7

Contributions

contribution_list

List scientific contributions with novelty scores.
ParameterTypeRequiredDescription
limitnumberNoMax results. Default: 20

contribution_create

Log a scientific contribution.
ParameterTypeRequiredDescription
titlestringYesContribution title
descriptionstringYesWhat was discovered or contributed
typestringNoprediction, measurement, method, catalog, constraint, null_result. Default: measurement

Agents & Communication

agent_list

List all agents with roles, status, and models. No parameters.

chat

Send a message to the lab orchestrator and wait for its response. Shares history with the web chat and CLI surfaces.
ParameterTypeRequiredDescription
messagestringYesMessage to send
sessionIdstringNoExisting session ID to resume. Pass "new" to start fresh.
waitMsnumberNoMax wait for response in ms. Default: 90000

Compute & Costs

pod_list

List GPU pods with status, GPU type, and cost. No parameters.

pod_create

Create a new GPU pod via RunPod API.
ParameterTypeRequiredDescription
gpuTypestringNoGPU type (e.g. H200, H100, A100). Default: H100
namestringNoPod name

cost_summary

Get daily/weekly/monthly/all-time cost breakdown vs budget. No parameters.

Misc

notification_list

List recent notifications (alerts, experiment completions, agent messages).
ParameterTypeRequiredDescription
limitnumberNoMax results. Default: 20
unreadOnlybooleanNoOnly unread notifications. Default: false

survey_list

List astronomical surveys with anomaly counts and source statistics. No parameters.

figure_list

List all figures with titles, types, and image URLs.
ParameterTypeRequiredDescription
limitnumberNoMax results. Default: 20

standup_trigger

Trigger an agent standup.
ParameterTypeRequiredDescription
typestringNomorning, midday, evening. Default: morning

activity_list

List recent lab activity (experiment completions, agent actions, alerts).
ParameterTypeRequiredDescription
limitnumberNoMax results. Default: 20

Phase E Ledger Tools (hubify_*)

These tools write to the agentEvents ledger. Events appear in real time in the Hubify web app’s Captain View and activity feed. Use these when Claude Code is acting as a local lab operator.

Context & Session

hubify_get_context

Full lab snapshot as structured JSON: lab metadata, stats, recent events, contributions, papers. Use at session start.
ParameterTypeRequiredDescription
recentLimitnumberNoRecent events to include. Default: 25

hubify_get_context_pack

Token-budgeted plain-text context pack for agent system prompts (lab state + in-flight experiments + recent events).
ParameterTypeRequiredDescription
targetstringNoCompaction style: claude, codex, generic. Default: generic
maxBytesnumberNoApproximate output cap. Default: 8000

hubify_create_session_summary

Persist a session summary to the ledger. Use at the end of every Claude Code session.
ParameterTypeRequiredDescription
summarystringYesMarkdown or plain-text summary of what was done
sessionIdstringNoSession identifier. Auto-generates a UUID if omitted.
durationMsnumberNoSession duration in ms
surfacestringNoWhere the session ran: claude-code, cli, sidebar

Event Logging

hubify_log_event

Append a typed event to the agentEvents ledger. Idempotent on clientEventId. Common event types: paper.section.drafted, experiment.completed, discovery.proposed, run.recorded, agent.woke, agent.sleeping.
ParameterTypeRequiredDescription
typestringYesDotted event type (e.g. paper.section.drafted)
clientEventIdstringNoIdempotency key. Auto-generated if omitted.
actorKindstringNocaptain, agent, orchestrator, system, webhook, cli, mcp. Default: mcp
actorLabelstringNoHuman-readable actor name (e.g. claude-code)
entityTypestringNoEntity the event is about (paper, experiment, claim)
entityIdstringNoConvex _id or external ID of the entity
payloadobjectNoJSON-encodable body
severitystringNodebug, info, warn, error. Default: info
correlationIdstringNoLinks related events together
parentEventIdstringNoParent event for nested flows

hubify_log_finding

Log a scientific finding. When noveltyScore >= 6, also creates a contributions row visible in the Contributions UI.
ParameterTypeRequiredDescription
summarystringYesOne-paragraph summary of the finding
noveltyScorenumberNo1–10 novelty rating. Default: 5
claimIdsstring[]NoRelated claim IDs
experimentIdstringNoSource experiment Convex _id
typestringNomethod, dataset, result, theorem. Default: result

hubify_sync_events

Batch-flush locally-buffered events in one round-trip. Idempotent on clientEventId.
ParameterTypeRequiredDescription
eventsobject[]YesArray of event objects, each with type and clientEventId required
Each event in the array accepts: type, clientEventId, actorKind, actorLabel, entityType, entityId, payload, severity, correlationId, occurredAt.

Run & Claims

hubify_record_run

Record a new run directory, tying paths to the originating experiment. Emits run.recorded.
ParameterTypeRequiredDescription
runIdstringYesRun ID, e.g. 2026-04-29-mcmc-final
pathsstring[]YesFiles written (relative to repo root)
experimentIdstringNoSource experiment _id
summarystringNoBrief summary of what the run produced

hubify_create_claim

Create a scientific claim. Emits claim.proposed and creates a contributions row.
ParameterTypeRequiredDescription
textstringYesThe claim — one falsifiable assertion
paperIdstringNoPaper this claim belongs to
experimentIdstringNoSource experiment _id
noveltyScorenumberNo1–10. Default: 5

hubify_update_claim

Update a claim’s status. Emits claim.upserted, claim.supported, or claim.refuted.
ParameterTypeRequiredDescription
claimIdstringYesClaim contribution _id
actionstringYesupsert, support, or refute
textstringNoNew claim text (for upsert)
evidenceIdsstring[]NoEvidence IDs (for support)
refuterIdsstring[]NoRefuting IDs (for refute)
noveltyScorenumberNoUpdated novelty score

Status

hubify_compute_status

Current pod and compute status, cost totals, monthly budget, and budget headroom. No parameters.

hubify_repo_status

Lab GitHub repo wiring: URL, default branch, manifest schema version, auto-push state. No parameters.

Paper Pipeline

hubify_get_paper_pipeline_status

Return pipeline state for a paper: title, status, readiness %, target venue, last-updated.
ParameterTypeRequiredDescription
paperIdstringYesPaper Convex _id

hubify_update_paper_stage

Move a paper to a new pipeline stage. Emits paper.stage.changed and updates the paper row.
ParameterTypeRequiredDescription
paperIdstringYesPaper Convex _id
fromstringYesCurrent stage (e.g. drafting)
tostringYesTarget stage (e.g. internal-review)
newStatusstringNoNew top-level status if it should change: draft, review, submitted, published

hubify_update_paper_section

Record that a paper section was drafted, edited, or completed. Emits paper.section.drafted, paper.section.edited, or paper.section.completed. Note: does not write .tex content directly — the round-trip GitHub sync owns the file content.
ParameterTypeRequiredDescription
paperIdstringYesPaper Convex _id
sectionstringYesSection name (e.g. introduction, methods, results)
actionstringYesdraft, edit, or complete
shastringNoGit commit sha if known
summarystringNoBrief description of what changed

Adversarial Review

hubify_start_adversarial_review

Kick off a multi-model adversarial peer review for a paper. Emits adversarial_review.started and triggers parallel reviewer roles.
ParameterTypeRequiredDescription
paperIdstringYesPaper Convex _id
rolesstring[]NoReviewer roles (e.g. ["skeptic", "statistician"]). Backend defaults apply if omitted.
abstractstringNoOverride the stored abstract for this review round

hubify_log_model_review

Record one model’s verdict in an in-flight adversarial review. Creates a paperReviews row visible in the reviews UI.
ParameterTypeRequiredDescription
paperIdstringYesPaper Convex _id
rolestringYesReviewer role (skeptic, statistician, generalist)
modelstringYesModel identifier (e.g. claude-opus-4-7)
verdictstringYesapprove, concern, or reject
summarystringYesReview summary
findingsstring[]NoSpecific findings
correlationIdstringNoCorrelation ID from hubify_start_adversarial_review

hubify_create_review_consensus

Synthesize an adversarial review verdict. Emits consensus.created and triggers the synthesis action.
ParameterTypeRequiredDescription
paperIdstringYesPaper Convex _id
verdictstringYesapprove, minor, major, or reject
blockersstring[]NoBlocking issues that must be resolved
correlationIdstringNoCorrelation ID from hubify_start_adversarial_review

MCP Resources

In addition to tools, the MCP server exposes read-only resources:
Resource URIContents
lab://statusLab stats as JSON
lab://experimentsAll experiments as JSON
lab://papersAll papers as JSON
lab://agentsAll agents as JSON
lab://tasksAll tasks as JSON
lab://memoryLab decisions + agent learnings as JSON

MCP Prompts

Four built-in prompt templates available in any MCP client:
PromptDescription
research-assistantResearch assistant with full lab context injected
paper-reviewerRigorous peer reviewer for a specific paper
experiment-designerDesigns next experiments based on completed results
houston-methodPost-experiment 9-step Houston Method checklist
standup-facilitatorFacilitates agent standups with real lab data