Skip to content

Commit 3a23d71

Browse files
committed
- Update PHP version requirement to 8.2
- Improve documentation formatter - Improve AI rules
1 parent 156bf78 commit 3a23d71

File tree

4 files changed

+38
-10
lines changed

4 files changed

+38
-10
lines changed

.cursorrules

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
1-
This package is a Laravel Model Context Protocol Server.
1+
This is a packge for laravel which makes easier to build a Model Context Protocol Server.
2+
3+
## Technical Specification
4+
5+
- Support Laravel 10, 11, 12
6+
- Support PHP 8.2+
7+
8+
## Laravel Package Development Guideline
29

3-
Laravel
410
- Add `use` statements for all Facade classes to call them more concisely.
511
- Use Facade classes or original Laravel classes in all files instead of helper functions.
12+
- Create new class and refactor if the file is getting too long. (more than 300 lines)
13+
- Use `env()` instead of `Config` facade in config file. (`/config/mcp-server.php`)
14+
- They don't support most classes in Laravel.
15+
- They support some of helpers: `storage_path()`, `resource_path()`, `env()`
16+
- They support some classes: `Illuminate\Support\Str`
17+
18+
## Features
619

7-
Features
820
- https://modelcontextprotocol.io/docs/concepts/architecture
921
- https://modelcontextprotocol.io/docs/concepts/tools
1022
- https://modelcontextprotocol.io/docs/concepts/transports
1123
- https://modelcontextprotocol.io/sdk/java/mcp-server
1224

13-
Documentation Guidelines
25+
## Documentation Guidelines
26+
1427
- Document all public methods and classes with PHPDoc annotations.
1528
- Include `@param`, `@return`, and `@throws` tags for all methods.
1629
- Document configuration options with sample values and explanations.

.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.md]
11+
[*.{md,cursorrules,windsurfrules}]
1212
trim_trailing_whitespace = false
13+
indent_style = space
14+
indent_size = 2
1315

1416
[*.{yml,yaml}]
1517
indent_size = 2

.windsurfrules

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
1-
This package is a Laravel Model Context Protocol Server.
1+
This is a packge for laravel which makes easier to build a Model Context Protocol Server.
2+
3+
## Technical Specification
4+
5+
- Support Laravel 10, 11, 12
6+
- Support PHP 8.2+
7+
8+
## Laravel Package Development Guideline
29

3-
Laravel
410
- Add `use` statements for all Facade classes to call them more concisely.
511
- Use Facade classes or original Laravel classes in all files instead of helper functions.
12+
- Create new class and refactor if the file is getting too long. (more than 300 lines)
13+
- Use `env()` instead of `Config` facade in config file. (`/config/mcp-server.php`)
14+
- They don't support most classes in Laravel.
15+
- They support some of helpers: `storage_path()`, `resource_path()`, `env()`
16+
- They support some classes: `Illuminate\Support\Str`
17+
18+
## Features
619

7-
Features
820
- https://modelcontextprotocol.io/docs/concepts/architecture
921
- https://modelcontextprotocol.io/docs/concepts/tools
1022
- https://modelcontextprotocol.io/docs/concepts/transports
1123
- https://modelcontextprotocol.io/sdk/java/mcp-server
1224

13-
Documentation Guidelines
25+
## Documentation Guidelines
26+
1427
- Document all public methods and classes with PHPDoc annotations.
1528
- Include `@param`, `@return`, and `@throws` tags for all methods.
1629
- Document configuration options with sample values and explanations.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"homepage": "https://github.com/opgginc/laravel-mcp-server",
1010
"license": "MIT",
1111
"require": {
12-
"php": "^8.4",
12+
"php": "^8.2",
1313
"spatie/laravel-package-tools": "^1.16",
1414
"illuminate/contracts": "^10.0||^11.0||^12.0"
1515
},

0 commit comments

Comments
 (0)