Skip to content

fix: detect if project uses sail #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Aug 13, 2025

Hello!

This detects if the project uses sail and automatically updates the mcp commands

Thanks!

@calebdw calebdw force-pushed the calebdw/push-mxkkxwromrzx branch 2 times, most recently from 822fe74 to afec83a Compare August 13, 2025 20:00
@nickpoulos
Copy link

I feel like we also need to update some other stubs or generated guidelines.

Ex. The guidelines being generated within CLAUDE.md - these examples would fail without appending "sail" in front

### Vite Error
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `npm run build` or ask the user to run `npm run dev` or `composer run dev`.

@calebdw
Copy link
Contributor Author

calebdw commented Aug 13, 2025

Sure, but that's a slightly separate concern. The main thing is getting the mcp server to be utilized in the first place

@Liamso
Copy link

Liamso commented Aug 13, 2025

+1 - surprised this wasn't picked up during dev. Thanks for the PR.

Might be best to allow an override in the user's .env - some projects will have sail installed but unused.

@gigerIT
Copy link

gigerIT commented Aug 14, 2025

Can we also add Sail support for the guidelines files in this PR?
Currently, it generates them with:

php artisan test

Example:

=== tests rules ===

## Test Enforcement

- Every change must be programmatically tested. Write a new test or update an existing test, then run the affected tests to make sure they pass.
- Run the minimum number of tests needed to ensure code quality and speed. Use `php artisan test` with a specific filename or filter.
</laravel-boost-guidelines>

Instead of:
sail test

@nikspyratos
Copy link

nikspyratos commented Aug 14, 2025

I think Sail docs can be split out into another PR, but would it not be better to instruct the agent to just use sail artisan for all artisan commands instead of individual instructions in this scenario?

@gigerIT
Copy link

gigerIT commented Aug 14, 2025

I think Sail docs can be split out into another PR, but would it not be better to instruct the agent to just use sail artisan for all artisan commands instead of individual instructions in this scenario?

Agreed, then it could just be a variable, either php or sail, used as the base for all generated commands in the docs.

@calebdw calebdw force-pushed the calebdw/push-mxkkxwromrzx branch from afec83a to 742447d Compare August 14, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants