Worktop

Worktop is a self-hosted project manager for one person, built with Laravel and Filament. It holds my projects and their tasks, and each project has a queue of the tasks I've picked to work on next. I direct agent sessions in several projects at once. Worktop's MCP server gives every session the same task list, and a page called the Rotation takes those projects in turn and keeps a note of what I asked each session to do.

In use for my own projects

  1. Projects, tasks and an MCP server · Built Oct 27
  2. Task queue and proposals · Built Oct 30
  3. OAuth for MCP clients · Built Nov 6
  4. Rotation · Built Nov 13
  5. Deploy tracking and Laravel Forge · Built Nov 17
  6. Agent session tracking · Built Nov 17
Started
Oct 27, 2026
Latest update
Nov 17
Runs on
My own server
Stack
Laravel 13, Filament 5, Livewire 4, Laravel MCP, Passport, Pest

Updates

Agent session tracking

Each agent session I have open shows on its project's page and on the Rotation as Working, Waiting for you or Needs permission, with the tasks it started. A project with several sessions shows the status that needs me most. When a session starts a task over MCP, the task is added to its project's note on the Rotation.

How it's built: A PHP script installed as Claude Code hooks on each machine posts each session's events to a hook URL with a secret token: the session ID, Git remote, branch and machine name, never prompts, replies or tool output. Project::normalizeRepository() reduces a remote to host and path, so the SSH and HTTPS forms of one repository match the same project and one setup per machine covers every project. get-project returns a project's active sessions over MCP, and the server's instructions tell a session to check with me before it starts a task another session is on. On the Rotation, the badges poll a #[Renderless] Livewire method from Alpine, so the page doesn't re-render under a note being typed.

tests/Feature/SessionHookTest.phpPHP
it('matches a repository however its URL is written', function (
    string $remote
) {
    expect(Project::normalizeRepository($remote))
        ->toBe('github.com/me/app');
})->with([
    'https://github.com/me/app',
    'https://github.com/Me/App.git',
    'https://github.com/me/app/',
    'git@github.com:me/app.git',
    'ssh://git@github.com:22/me/app.git',
    'https://token@github.com/me/app',
]);

Forge health checks

A Forge page lists every site in the connected Laravel Forge account with its server, and shows whether its PHP and Ubuntu versions still get security fixes. It also checks each Laravel site's .env for debug mode left on, an empty APP_KEY and an APP_ENV that isn't production.

How it's built: Each .env is fetched from Forge's API in parallel with Http::pool and passed to EnvironmentChecks, which returns only its findings. The findings are cached and the values are not, and tests assert that no value reaches the cache or the page. End-of-support dates for PHP and Ubuntu come from a dated table in SupportedVersions.

Laravel Forge site management

A project links to its site on Laravel Forge, or creates one from its page. The project page then shows the site's PHP version, branch, last deployment and server, with actions to deploy, toggle maintenance mode and the scheduler, change the PHP version and manage queue workers.

How it's built: App\Services\Forge is a small client for Forge's API v2 on Laravel's HTTP client, since the official SDK requires Guzzle 7 and Worktop is on Guzzle 8. Reads are cached to stay inside Forge's rate limit and return null when Forge can't be reached, so the page still renders. An agent session gets the same details over MCP through get-forge-site, which is read-only.

Deploy tracking

Each project can have a deploy hook URL. Laravel Forge calls it after every deploy, and the project's Deployments tab lists each deploy with its status and commit. An agent session reads the latest deploys over MCP, so it can confirm its commit is live before it moves on.

Projects / Trail Guide / DeploymentsScreenshot
A project's Deployments tab: three deploys, newest first, each with when it happened, a success badge, a short commit hash that links to the commit, the commit message and the author. A Deploy hook button sits above the table.

How it's built: POST /api/deploy-hooks/{token} records a Deployment from whatever the host sends. Forge doesn't sign its webhooks, so the random token in the URL is the only credential: the route is rate limited, and the URL can be replaced or turned off from the project page. Every field is optional, so a bare curl from any other host works too.

Screenshots show demo data.

Rotation

The Rotation is the page I work from when I have agent sessions open in several projects. The project whose turn it is sits on top with a note box. I type a few words on what I just asked its session to do and press Enter, and it goes to the back while the next project comes up.

RotationScreenshot
The Rotation page. The project whose turn it is sits on top with its notes, one of them linked to task #1, a note box and a Next button. Five more projects are listed below it, one line each with its latest note, and four of them have a session badge: Working, Waiting for you or Needs permission.

How it's built: A custom Filament page. The order of the cycle is a nullable rotation_position on the project, and the turn is a has_rotation_turn flag that is read and written only through queries, so it stays correct when the project holding it leaves the Rotation or is deleted. A note can name any of the project's open tasks through a pivot table, and clicking a project opens its open tasks in a slide-over.

OAuth for MCP clients

Claude Code and Claude's web, desktop and mobile apps connect to the MCP server over OAuth. A client registers itself, and I sign in to Worktop and approve it. A Connected apps page lists the clients I've approved and disconnects any of them.

How it's built: Laravel Passport, with Laravel MCP's OAuth discovery and client registration routes. Registration has to be public, so that route is rate limited and accepts redirects only to an allowlist of domains. OAuth clients are shared between users, so disconnecting revokes that user's tokens and leaves the client in place. Passport's device code grant is off.

Task queue and proposals

A new task goes to its project's backlog, and I move the tasks to work on next into the project's queue, in the order I set. Work that an agent session notices but wasn't asked to do is logged as Proposed, a status outside both the backlog and the queue. I accept a proposal and it becomes a task, or I decline it and it stays on record.

Projects / Trail Guide / TasksScreenshot
A project's tasks in one table, grouped into Queue, Backlog and Proposed. The first queued task is in progress. Each proposed task has a thumbs-up and a thumbs-down button, to accept or decline it.

How it's built: The queue is a nullable queue_position on the task, where null means backlog. Only open tasks can be queued, and finishing a task clears its position. The MCP server's instructions tell a session to work from the queue, top first, to log unrequested work as proposed, and to check the proposed and declined lists first so nothing is suggested twice.

MCP server

Worktop has an MCP server, so an agent session works from the same task list I see in the web app. Its tools list, add and update projects and tasks and mark tasks done.

How it's built: Laravel MCP, served over HTTP at /mcp. Each tool acts as the user who approved the client and scopes every lookup to that user through a shared InteractsWithRecords trait. There are no delete tools. The web app is a single Filament 5 panel, with the same ownership scoping in each resource's query and in its policies.

Decisions

Decision 01Oct 27

The MCP server has no delete tools

  • Context: Any client I approve can change my projects and tasks through the MCP server.
  • Decision: The tools list, add, update and complete. Deleting is done in the web app.
  • Why: A wrong update can be corrected, and a deleted project can't be restored.
Decision 02Oct 30

Unrequested work is logged as Proposed

  • Context: A session that finishes a task usually sees more that could be done.
  • Decision: It logs the idea as Proposed and doesn't start it. I accept or decline, and declined ideas are kept.
  • Why: The backlog holds only what I agreed to, and the same idea isn't suggested twice.
Decision 03Nov 14

A token in the URL authenticates each hook

  • Context: Forge calls a URL after each deploy and doesn't sign the request. A hook script can't complete an OAuth sign-in either.
  • Decision: Each hook URL carries a long random token. The routes are rate limited, and a URL can be replaced or turned off.
  • Why: A leaked URL can only add a record, and replacing it revokes access.
Decision 04Nov 17

Session hooks send status only

  • Context: Session tracking posts to Worktop from every machine, as each session works.
  • Decision: The script sends the session's ID, the event, the Git remote, the branch, the machine's name and a task's ID. Sessions are deleted a week after their last event.
  • Why: Showing which session needs me requires only its status.

What's next

  1. Idea
    A log on each project: what happened and why, written over MCP
  2. Idea
    Sessions writing their own Rotation notes
  3. Later
    An AI feature in the app itself

Follow along

Updates are posted here as features are built. The repo is private.

I build MCP servers for Laravel apps. Work with me