From 3ab7a873f3c147e29addd137770d5b964efa6f25 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Fri, 21 Mar 2025 14:58:57 +0100 Subject: [PATCH] Remove demo data and allow empty meta fields --- src/MCP/Server.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/MCP/Server.php b/src/MCP/Server.php index cff2080..9310c1b 100644 --- a/src/MCP/Server.php +++ b/src/MCP/Server.php @@ -13,31 +13,6 @@ class Server { private array $resources = []; public function __construct() { - // Sample data (replace with your actual data handling) - $this->data['users'] = [ - [ - 'id' => 1, - 'name' => 'Alice', - 'email' => 'alice@example.com', - ], - [ - 'id' => 2, - 'name' => 'Bob', - 'email' => 'bob@example.com', - ], - ]; - $this->data['products'] = [ - [ - 'id' => 101, - 'name' => 'Product A', - 'price' => 20, - ], - [ - 'id' => 102, - 'name' => 'Product B', - 'price' => 30, - ], - ]; } public function register_tool( array $tool_definition ): void {