Laravel’s official MCP package, laravel/mcp, reached v1.3.0 on 24 November 2026. The main addition is support for the MCP Skills extension: your Laravel app can now serve Agent Skills (folders of Markdown instructions and reference files) to any AI client that connects to your MCP server. The release also lets tool handlers check which capabilities the connected client declared. Here’s how to use both.

What’s in laravel/mcp 1.3.0

From the v1.3.0 release notes:

  • Support for the MCP Skills extension (#410)
  • Client capabilities exposed to handlers and tests (#414)
  • The resource metadata URL of the OAuth challenge can now be resolved, and the OAuth authorize view is translatable
  • A fix for the stdio server stopping by itself on Windows after a long idle period
  • Client OAuth conformance scenarios now run, with the gaps they exposed fixed
  • PHP 8.6 added to the test matrix

Upgrade with Composer:

composer require laravel/mcp:^1.3

If you’re new to the package, the Laravel MCP documentation explains the basics. Install it, publish routes/ai.php with php artisan vendor:publish --tag=ai-routes, and register servers with Mcp::web() or Mcp::local().

What are Agent Skills?

An Agent Skill is a folder with a SKILL.md file at its root. The file starts with YAML frontmatter (a name and a description) followed by instructions. Supporting files such as checklists, templates or scripts can sit next to it. Agents read the short description first and only load the full instructions when the skill is relevant.

The MCP Skills extension (io.modelcontextprotocol/skills) defines how an MCP server offers those folders. Clients discover skills with skills/list and skills/get, and read the files through the normal resources/read method.

Why serve skills from Laravel? Your app already knows your domain: how to prepare a release, how to write a support reply, how your API pagination works. Serving that knowledge from the MCP server keeps one versioned copy next to your code, instead of copies pasted into every developer’s agent config.

Step 1: Create a skill folder

Create a folder under resources/skills. The name in the frontmatter must match the folder name:

resources/skills/release-checklist/
├── SKILL.md
└── references/checklist.md
---
name: release-checklist
description: Prepare a release using the bundled checklist.
---

# Release checklist

Read [the checklist](references/checklist.md) before preparing a release.
Run the test suite, update CHANGELOG.md and tag the version.

Per the PR, the name can be at most 64 characters, using lowercase letters, numbers and single hyphens, and a description is required.

Step 2: Register it on your server

The simplest way is to list folder paths in a $skills property. Relative paths resolve from resource_path():

<?php

namespace App\Mcp\Servers;

use Laravel\Mcp\Server;

class ProjectServer extends Server
{
    protected array $skills = [
        'skills/release-checklist',
    ];
}

Setting $skills automatically advertises the skills extension and the resources capability to clients, so you don’t need any extra configuration. Register the server in routes/ai.php as usual:

use App\Mcp\Servers\ProjectServer;
use Laravel\Mcp\Facades\Mcp;

Mcp::web('/mcp/project', ProjectServer::class);

Step 3: Use a Skill class for permissions or custom URIs

Some skills shouldn’t be visible to everyone. Generate a class with Artisan:

php artisan make:mcp-skill ReleaseChecklist

This creates app/Mcp/Skills/ReleaseChecklist.php and resources/skills/release-checklist/SKILL.md. An existing SKILL.md is kept unless you pass --force. Add a shouldRegister() method to gate the skill:

<?php

namespace App\Mcp\Skills;

use Laravel\Mcp\Request;
use Laravel\Mcp\Server\Attributes\Uri;
use Laravel\Mcp\Server\Skill;

#[Uri('skill://engineering/release-checklist/SKILL.md')]
class ReleaseChecklist extends Skill
{
    public function path(): string
    {
        return 'skills/release-checklist';
    }

    public function shouldRegister(Request $request): bool
    {
        return $request->user()?->can('prepare-releases') ?? false;
    }
}

When shouldRegister() returns false, the skill disappears from skills/list, skills/get, resources/list and resources/read. That means users without the permission can’t read its files either. The #[Uri] attribute is optional. By default the URI is skill://{name}/SKILL.md, and supporting files follow the same prefix.

You can mix folder paths and classes in one server:

protected array $skills = [
    'skills/house-style',
    \App\Mcp\Skills\ReleaseChecklist::class,
];

What clients see

skills/list returns each skill with its frontmatter and a manifest of every file, including a SHA-256 digest and size:

{
  "uri": "skill://release-checklist/SKILL.md",
  "frontmatter": {
    "name": "release-checklist",
    "description": "Prepare a release using the bundled checklist."
  },
  "resources": [
    { "uri": "skill://release-checklist/SKILL.md", "digest": "sha256:…", "size": 214 },
    { "uri": "skill://release-checklist/references/checklist.md", "digest": "sha256:…", "size": 58 }
  ]
}

Only SKILL.md shows up in resources/list, but every file in the folder can be read with resources/read. An unknown URI passed to skills/get returns JSON-RPC error -32602.

Built-in file safety

The package keeps skill folders from leaking other files:

  • Only regular files inside the skill folder are served. Dotfiles and symbolic links are skipped, and reads can’t escape the folder.
  • A skill over 512 files or 16 MiB is refused, as the spec recommends.

Even so, treat skill folders like public docs. Don’t put secrets, .env snippets or customer data in them.

The PR also lists what isn’t supported yet: the optional directoryRead capability, and client-side behaviour such as digest checks, approval, activation and execution. Those are up to the MCP client.

Bonus: check client capabilities in a tool

On protocol revision 2026-07-28, each request carries the client’s declared capabilities. Version 1.3 adds clientSupports() to the request, with dot notation:

use Laravel\Mcp\Request;
use Laravel\Mcp\Response;

public function handle(Request $request): Response
{
    if ($request->clientSupports('sampling.tools')) {
        // Safe to use a sampling-based flow here
    }

    return Response::text('Done.');
}

Capability objects declared as arrays, even empty ones like ['sampling' => ['tools' => []]], count as true. Boolean flags are returned exactly as declared.

Testing skills and capabilities

The test client can now simulate a client’s capabilities. It declares none by default:

use App\Mcp\Servers\WeatherServer;
use App\Mcp\Tools\CurrentWeatherTool;

it('uses sampling when the client supports it', function () {
    WeatherServer::withClientCapabilities(['sampling' => ['tools' => []]])
        ->tool(CurrentWeatherTool::class)
        ->assertOk();
});

The release also adds assertErrorCode() for checking a JSON-RPC error code and, optionally, its data member.

Takeaway

laravel/mcp 1.3 turns your Laravel app into a source of Agent Skills. Drop a SKILL.md folder under resources/skills, list it in $skills, and gate sensitive ones with a Skill class and shouldRegister(). Pair that with clientSupports() so your tools adapt to what each client can actually do.