feat: install and configure Laravel MCP#128
Merged
ibourgeois merged 2 commits intomainfrom Mar 26, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Laravel MCP to the app, wiring up a local katra MCP handle with a minimal server + read-only tool, and documents/validates the setup via a smoke test.
Changes:
- Add
laravel/mcpas an application dependency. - Publish minimal MCP config and a new
routes/ai.phpentry registering the localkatraserver. - Add
KatraServer, a read-onlyDescribeWorkspacetool, and a feature smoke test.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
composer.json |
Adds Laravel MCP dependency required for MCP server/tool support. |
config/mcp.php |
Introduces MCP OAuth redirect domain configuration. |
routes/ai.php |
Registers the local MCP handle katra pointing at the new server. |
app/Mcp/Servers/KatraServer.php |
Defines the MCP server and registers the tool list. |
app/Mcp/Tools/DescribeWorkspace.php |
Implements a read-only, idempotent tool returning workspace metadata. |
tests/Feature/McpSmokeTest.php |
Smoke-tests that the tool is exposed and returns expected content. |
README.md |
Documents MCP setup, how to start the server, and where the smoke test lives. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
katrahandleTesting
/Users/ibourgeois/Library/Application Support/Herd/bin/php84 artisan test --compact tests/Feature/McpSmokeTest.phpCloses #32