From db9e4a7312734a893f69a2ae6acf61036d24a16e Mon Sep 17 00:00:00 2001 From: Twyco Date: Mon, 20 Apr 2026 13:40:52 +0200 Subject: [PATCH] Disable Scalar MCP prompt --- config/scalar.php | 7 +++++++ tests/Feature/Api/PublicApiDocumentationTest.php | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/scalar.php b/config/scalar.php index 23e1e05..ff5c8d4 100644 --- a/config/scalar.php +++ b/config/scalar.php @@ -112,6 +112,13 @@ return [ */ 'hideTestRequestButton' => true, + /** + * MCP will be introduced as a first-party KanbanGit feature later. + */ + 'mcp' => [ + 'disabled' => true, + ], + /** * Whether to show the sidebar search bar */ diff --git a/tests/Feature/Api/PublicApiDocumentationTest.php b/tests/Feature/Api/PublicApiDocumentationTest.php index 3623399..2c50d43 100644 --- a/tests/Feature/Api/PublicApiDocumentationTest.php +++ b/tests/Feature/Api/PublicApiDocumentationTest.php @@ -9,7 +9,8 @@ class PublicApiDocumentationTest extends TestCase public function test_scalar_api_docs_are_public(): void { $this->get('/api/docs') - ->assertOk(); + ->assertOk() + ->assertSee('"mcp":{"disabled":true}', false); } public function test_openapi_document_is_publicly_served(): void