Skip to content

Commit 7054c9d

Browse files
binarykgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 016a886 commit 7054c9d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Mcp/Tools/InstallRestifyTool.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,11 @@ protected function setupMcpRoutes(): array
580580
{
581581
try {
582582
$routesPath = base_path('routes/ai.php');
583-
583+
584584
// Check if routes/ai.php already exists
585585
if (File::exists($routesPath)) {
586586
$existingContent = File::get($routesPath);
587-
587+
588588
// Check if MCP routes already exist
589589
if (str_contains($existingContent, 'RestifyServer') || str_contains($existingContent, 'mcp.restify')) {
590590
return [
@@ -593,33 +593,33 @@ protected function setupMcpRoutes(): array
593593
'message' => 'MCP routes already configured in routes/ai.php',
594594
];
595595
}
596-
596+
597597
// Append to existing file
598598
$mcpRoutes = $this->getMcpRoutesContent();
599-
File::append($routesPath, "\n\n" . $mcpRoutes);
600-
599+
File::append($routesPath, "\n\n".$mcpRoutes);
600+
601601
return [
602602
'success' => true,
603603
'step' => 'MCP Setup',
604604
'message' => 'MCP routes added to existing routes/ai.php file',
605605
];
606606
}
607-
607+
608608
// Create new routes/ai.php file
609609
$fullRoutesContent = $this->getFullMcpRoutesFile();
610610
File::put($routesPath, $fullRoutesContent);
611-
611+
612612
return [
613613
'success' => true,
614614
'step' => 'MCP Setup',
615615
'message' => 'Created routes/ai.php with MCP server configuration',
616616
];
617-
617+
618618
} catch (\Exception $e) {
619619
return [
620620
'success' => false,
621621
'step' => 'MCP Setup',
622-
'message' => 'Failed to setup MCP routes: ' . $e->getMessage(),
622+
'message' => 'Failed to setup MCP routes: '.$e->getMessage(),
623623
];
624624
}
625625
}
@@ -719,7 +719,7 @@ protected function generateSuccessResponse(array $results, array $arguments): To
719719
if ($arguments['update_config'] ?? true) {
720720
$response .= "- `config/restify.php.backup-*` - Backup of previous config (if existed)\n";
721721
}
722-
722+
723723
if ($arguments['setup_mcp'] ?? false) {
724724
$response .= "- `routes/ai.php` - MCP server routes for AI integration\n";
725725
}
@@ -759,7 +759,7 @@ protected function generateSuccessResponse(array $results, array $arguments): To
759759
}
760760

761761
if ($arguments['setup_mcp'] ?? false) {
762-
$nextStepNumber = ($arguments['enable_sanctum_auth'] ?? false) ? "7" : "6";
762+
$nextStepNumber = ($arguments['enable_sanctum_auth'] ?? false) ? '7' : '6';
763763
$response .= "{$nextStepNumber}. **Test MCP Server:** Connect your AI client to `/mcp/restify` endpoint\n";
764764
}
765765

0 commit comments

Comments
 (0)