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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Sometimes you may need to manually register the Laravel Boost MCP server with yo

<table>
<tr><td><strong>Command</strong></td><td><code>php</code></td></tr>
<tr><td><strong>Args</strong></td><td><code>./artisan boost:mcp</code></td></tr>
<tr><td><strong>Args</strong></td><td><code>artisan boost:mcp</code></td></tr>
</table>

JSON Example:
Expand All @@ -112,7 +112,7 @@ JSON Example:
"mcpServers": {
"laravel-boost": {
"command": "php",
"args": ["./artisan", "boost:mcp"]
"args": ["artisan", "boost:mcp"]
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/Install/CodeEnvironment/CodeEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public function getPhpPath(): string

public function getArtisanPath(): string
{
return $this->useAbsolutePathForMcp() ? base_path('artisan') : './artisan';

return $this->useAbsolutePathForMcp() ? base_path('artisan') : 'artisan';
}

/**
Expand Down Expand Up @@ -81,7 +80,7 @@ public function detectInProject(string $basePath): bool
return $strategy->detect($config);
}

public function IsAgent(): bool
public function isAgent(): bool
{
return $this->agentName() && $this instanceof Agent;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// Should be an absolute path ending with 'artisan'
expect($artisanPath)->toEndWith('artisan')
->and($artisanPath)->not()->toBe('./artisan');
->and($artisanPath)->not()->toBe('artisan');
});

test('Cursor returns relative php string', function () {
Expand All @@ -35,5 +35,5 @@
$strategyFactory = Mockery::mock(DetectionStrategyFactory::class);
$cursor = new Cursor($strategyFactory);

expect($cursor->getArtisanPath())->toBe('./artisan');
expect($cursor->getArtisanPath())->toBe('artisan');
});
4 changes: 2 additions & 2 deletions tests/Unit/Install/CodeEnvironment/CodeEnvironmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ public function mcpConfigPath(): string
test('IsAgent returns true when implements Agent interface and has agentName', function () {
$agent = new TestAgent($this->strategyFactory);

expect($agent->IsAgent())->toBe(true);
expect($agent->isAgent())->toBe(true);
});

test('IsAgent returns false when does not implement Agent interface', function () {
$environment = new TestCodeEnvironment($this->strategyFactory);

expect($environment->IsAgent())->toBe(false);
expect($environment->isAgent())->toBe(false);
});

test('isMcpClient returns true when implements McpClient interface and has mcpClientName', function () {
Expand Down