CorePHP Agentic

agentic

Available

Work plans, agent sessions, and content generation

About

Manage multi-phase work plans, track agent sessions with handoff support,
and generate content through an AI pipeline. Plans survive context limits
and enable collaboration between agents across sessions.

Use when

  • • Working on a multi-phase project that needs structure
  • • Need to preserve context across sessions
  • • Handing off work to another agent
  • • Want to track progress on a long-running task
  • • Need to verify previous work before continuing
  • • Storing shared state between sessions

Don't use when

  • • Simple one-off tasks that fit in a single session
  • • Quick questions that don't need tracking

Connection

Call tools on this server via HTTP:

curl -X POST https://mcp.lthn.ai/tools/call \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "server": "agentic",
    "tool": "plan_create",
    "arguments": {}
  }'

Full setup guide →

Tools (29)

plan_create

Create a new work plan with phases and tasks

Example prompts:

  • "Create a plan for implementing user authentication"
  • "Set up a refactoring plan with 3 phases"
  • "Make a plan to migrate the database schema"
Parameters
title * string

Plan title

slug string

URL-friendly slug (auto-generated if not provided)

description string

Brief description of the plan

context string

Background context and goals

phases array

Array of phase objects with name, description, and tasks

activate boolean

Set plan status to active immediately (default false)

plan_get

Get a plan with all phases, progress, and state

Example prompts:

  • "Show me the auth-migration plan"
  • "What's the current state of the refactor?"
  • "Get details on the database plan"
Parameters
slug * string

Plan slug identifier

include_state boolean

Include workspace state in response (default false)

plan_list

List all plans, optionally filtered by status

Example prompts:

  • "What plans do we have?"
  • "Show me all active plans"
  • "List completed plans"
Parameters
status string

Filter by status

include_archived boolean

Include archived plans (default false)

plan_update_status

Update plan status

Example prompts:

  • "Mark the auth plan as completed"
  • "Archive the old migration plan"
  • "Activate the new feature plan"
Parameters
slug * string

Plan slug identifier

status * string

New status

plan_archive

Archive a completed or abandoned plan

Parameters
slug * string

Plan slug identifier

reason string

Reason for archiving

phase_get

Get details of a specific phase

Parameters
plan_slug * string

Plan slug identifier

phase * string|integer

Phase order number or name

phase_update_status

Update a phase status - start, complete, block, or skip

Example prompts:

  • "Start phase 2 of the migration"
  • "Mark the testing phase as complete"
  • "Block phase 3, waiting on API access"
Parameters
plan_slug * string

Plan slug identifier

phase * string|integer

Phase order number or name

status * string

New status

notes string

Optional notes about the status change

phase_add_checkpoint

Add a checkpoint note to a phase

Parameters
plan_slug * string
phase * string|integer
note * string

Checkpoint note

context object

Additional context data

task_toggle

Toggle a task completion status

Parameters
plan_slug * string
phase * string|integer

Phase order number or name

task_index * integer

Task index (0-based)

task_update

Update task details (status, notes)

Parameters
plan_slug * string
phase * string|integer
task_index * integer
status string
notes string

Task notes

session_start

Start a new agent session, optionally linked to a plan

Example prompts:

  • "Start a session for the auth-migration plan"
  • "Begin working on the refactor"
Parameters
plan_slug string

Plan slug to link session to (optional)

agent_type * string

Agent type for tracking

context object

Initial session context

session_log

Log an action to the current session

Parameters
message * string
type string
data object

Additional data to log

session_artifact

Log a file artifact (created, modified, or deleted)

Parameters
path * string

File path

action * string

What happened to the file

description string

Description of changes

session_handoff

Prepare session for handoff to another agent

Example prompts:

  • "Hand off to the next agent"
  • "Prepare for context switch"
  • "Save state for resumption"
Parameters
summary * string

Summary of work done

next_steps array

Recommended next steps

blockers array

Any blockers encountered

context_for_next object

Context to pass to next agent

session_end

End the current session

Parameters
status * string

Final session status

summary string

Final summary

state_set

Store a value in workspace state - persists across sessions

Example prompts:

  • "Save the database schema decisions"
  • "Store the API endpoints we found"
  • "Remember the test results"
Parameters
plan_slug * string
key * string

State key

value * object|array|string|number|boolean

Value to store

category string

Category for organisation

state_get

Retrieve a value from workspace state

Parameters
plan_slug * string
key * string

state_list

List all state keys for a plan

Parameters
plan_slug * string
category string

Filter by category

template_list

List available plan templates

Parameters
category string

Filter by category

template_preview

Preview a template with variables

Parameters
template * string

Template name/slug

variables object

Variable values for the template

template_create_plan

Create a new plan from a template

Parameters
template * string

Template name/slug

variables * object

Variable values for the template

slug string

Custom slug for the plan

content_status

Get content generation pipeline status

Example prompts:

  • "What's the content generation status?"
  • "Are the AI providers configured?"

content_brief_create

Create a content brief for AI generation

Example prompts:

  • "Create a help article about setting up QR codes"
  • "Write a blog post about analytics best practices"
Parameters
title * string

Content title

content_type * string

Type of content

service string

Service context

keywords array

SEO keywords to include

target_word_count integer

Target word count (default 800)

description string

Brief description of what to write

difficulty string

Target audience level

plan_slug string

Link to an existing plan

content_brief_list

List content briefs with optional status filter

Parameters
status string

Filter by status

limit integer

Maximum results (default 20)

content_brief_get

Get details of a specific content brief including generated content

Parameters
id * integer

Brief ID

content_generate

Generate content for a brief using AI pipeline

Example prompts:

  • "Generate content for brief 42"
  • "Run the full pipeline for the QR codes article"
Parameters
brief_id * integer

Brief ID to generate content for

mode string

Generation mode (draft=Gemini only, refine=Claude only, full=both)

sync boolean

Run synchronously (wait for result) vs queue for async

content_batch_generate

Queue multiple briefs for batch content generation

Parameters
limit integer

Maximum briefs to process (default 5)

mode string

Generation mode

content_from_plan

Create content briefs from plan tasks and queue for generation

Example prompts:

  • "Generate help articles from the biohost-docs plan"
  • "Create content from the API documentation plan tasks"
Parameters
plan_slug * string

Plan slug to generate content from

content_type string

Type of content to generate

service string

Service context

limit integer

Maximum briefs to create (default 5)

target_word_count integer

Target word count per article

content_usage_stats

Get AI usage statistics (tokens, costs)

Example prompts:

  • "How much have we spent on AI this month?"
  • "Show me content generation usage stats"
Parameters
period string

Time period for stats

Resources (5)

plans://all

List of all work plans

plans://{slug}

Full plan as markdown

plans://{slug}/phases/{n}

Phase tasks as checklist

plans://{slug}/state/{key}

Specific state value

sessions://{id}/context

Session handoff context

Workflows (3)

Structured Project

Full workflow for a multi-phase project

  1. plan_create — Define phases and tasks upfront
  2. session_start — Begin tracking work
  3. phase_update_status — Start first phase
  4. Work on tasks — Complete tasks, use task_toggle
  5. phase_update_status — Mark phase complete
  6. Repeat for each phase
  7. plan_update_status — Mark plan done

Multi-Agent Handoff

Pass work between agents

  1. session_start — Agent A starts
  2. Work on phases — Make progress
  3. session_handoff — Prepare handoff notes
  4. session_start — Agent B resumes
  5. Continue work — Pick up where left off

Context Recovery

Resume after context limit

  1. plan_get — Get previous context
  2. session_start — Start new session
  3. Continue — Pick up from checkpoint
View Usage Analytics