All skills
asyrafhussin avatar

/laravel-mcp

@a4841d6

Laravel MCP server development. Use when building MCP servers, tools, prompts, or resources for AI client integration. Triggers on tasks involving laravel/mcp, MCP tools, MCP prompts, MCP resources, or AI client protocols.

Use this Skill: https://skilld.dev/gh/asyrafhussin/agent-skills/laravel-mcp

This session only. Nothing lands on disk.

README.md

≈364 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Laravel MCP

Comprehensive guide for building MCP (Model Context Protocol) servers with Laravel. 7 rules across 5 categories.

Version: 1.0.0

Overview

This skill provides guidance for:

  • Creating and registering MCP servers (web and local)
  • Building tools with input/output schemas and responses
  • Defining prompts with arguments and validation
  • Exposing resources and resource templates
  • Protecting servers with OAuth 2.1, Sanctum, or custom auth
  • Testing with MCP Inspector and unit tests

Categories

1. Servers (Critical)

Create and register MCP servers for web (HTTP) and local (Artisan CLI) transports.

2. Tools (High)

Build tools with JSON schemas, validation, dependency injection, annotations, and multiple response types.

3. Prompts & Resources (Medium)

Define reusable prompt templates and expose data resources for AI client context.

4. Authentication (High)

Protect MCP servers with OAuth 2.1 (Passport), Sanctum tokens, or custom middleware.

5. Testing (High)

Test servers with MCP Inspector and write unit tests with assertions.

Rules

Rule Category Impact
server-create-register Servers CRITICAL
tool-create Tools HIGH
tool-responses Tools HIGH
prompt-create Prompts & Resources MEDIUM
resource-create Prompts & Resources MEDIUM
auth-protect Authentication HIGH
test-unit Testing HIGH

Source: SKILL.md on GitHub

No alerts16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides comprehensive guidelines for building Laravel-based MCP servers, focusing on tools, prompts, and resources. It follows best practices by encouraging the use of Laravel validation and authentication mechanisms. It references official documentation and repositories from trusted organizations. A potential surface for indirect prompt injection is identified as the skill describes how to ingest and process external data within the MCP framework.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at a4841d6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 7 months ago
Other metadata
metadata
{
  "author": "Laravel Community",
  "version": "1.0.0",
  "laravelVersion": "13.x",
  "phpVersion": "8.3+"
}

README badge

README badge for asyrafhussin/agent-skills/laravel-mcp