Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Release Notes

## [Unreleased](https://github.com/laravel/package-template/compare/v0.2.0...main)
## [Unreleased](https://github.com/laravel/mcp/compare/v0.2.0...main)

## [v0.2.0](https://github.com/laravel/package-template/compare/v0.1.0...v0.2.0) - 2025-09-18
## [v0.2.0](https://github.com/laravel/mcp/compare/v0.1.0...v0.2.0) - 2025-09-18

- First official "beta" release of Laravel MCP package.

Expand Down
4 changes: 3 additions & 1 deletion src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ abstract class Server

protected string $version = '0.0.1';

protected string $instructions = 'This MCP server lets AI agents interact with our Laravel application.';
protected string $instructions = <<<'MARKDOWN'
This MCP server lets AI agents interact with our Laravel application.
MARKDOWN;

/**
* @var array<int, string>
Expand Down
11 changes: 11 additions & 0 deletions src/Server/Tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ public function toMethodCall(): array
return ['name' => $this->name()];
}

/**
* Get the tool's array representation.
*
* @return array{
* name: string,
* title?: string|null,
* description?: string|null,
* inputSchema?: array<string, mixed>,
* annotations?: array<string, mixed>|object
* }
*/
public function toArray(): array
{
$annotations = $this->annotations();
Expand Down
Loading