PHP Classes

File: docs/api/_MCP.md

Recommend this page to a friend!
  Classes of Mohamed Ahmed   Laravel MCP SDK   docs/api/_MCP.md   Download  
File: docs/api/_MCP.md
Role: Auxiliary data
Content typex: text/markdown
Description: Auxiliary data
Class: Laravel MCP SDK
Create tools to process user requests with prompts
Author: By
Last change:
Date: Yesterday
Size: 682 bytes
 

Contents

Class file image Download

MCP

Namespace: ``

@method static void addTool(string $name, callable $handler, ?string $description = null) @method static void addToolInterface(ToolInterface $tool) @method static void addResource(string $uri, mixed $content, ?string $mimeType = null, ?string $description = null) @method static void addResourceInterface(ResourceInterface $resource) @method static void addResourceTemplate(ResourceTemplateInterface $template) @method static void addPrompt(string $name, array $messages, ?string $description = null) @method static void addPromptInterface(PromptInterface $prompt)

Methods

getFacadeAccessor

Get the registered name of the component.

@return string