mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 14:13:31 +00:00
feat(mcp): add per-team server toggle
This commit is contained in:
1 parent
3f0a0f7a0d
commit
bef94a9ce2
10 files changed
+83
-2
No files matched your search
@@ -24,11 +24,14 @@ class Index extends Component
|
||||
|
||||
public ?string $description = null;
|
||||
|
||||
public bool $is_mcp_server_enabled = true;
|
||||
|
||||
protected function rules(): array
|
||||
{
|
||||
return [
|
||||
'name' => ValidationPatterns::nameRules(),
|
||||
'description' => ValidationPatterns::descriptionRules(),
|
||||
'is_mcp_server_enabled' => 'boolean',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -58,10 +61,12 @@ class Index extends Component
|
||||
// Sync TO model (before save)
|
||||
$this->team->name = $this->name;
|
||||
$this->team->description = $this->description;
|
||||
$this->team->is_mcp_server_enabled = $this->is_mcp_server_enabled;
|
||||
} else {
|
||||
// Sync FROM model (on load/refresh)
|
||||
$this->name = $this->team->name;
|
||||
$this->description = $this->team->description;
|
||||
$this->is_mcp_server_enabled = $this->team->is_mcp_server_enabled;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user