@@ -32,13 +32,13 @@ STDIO examples use standard input/output for communication:
3232
3333``` bash
3434# Interactive testing with MCP Inspector
35- npx @modelcontextprotocol/inspector php examples/01 -discovery-stdio -calculator/server.php
35+ npx @modelcontextprotocol/inspector php examples/stdio -discovery-calculator/server.php
3636
3737# Run with debugging enabled
38- npx @modelcontextprotocol/inspector -e DEBUG=1 -e FILE_LOG=1 php examples/01 -discovery-stdio -calculator/server.php
38+ npx @modelcontextprotocol/inspector -e DEBUG=1 -e FILE_LOG=1 php examples/stdio -discovery-calculator/server.php
3939
4040# Or configure the script path in your MCP client
41- # Path: php examples/01 -discovery-stdio -calculator/server.php
41+ # Path: php examples/stdio -discovery-calculator/server.php
4242```
4343
4444### HTTP Examples
@@ -47,7 +47,7 @@ HTTP examples run as web servers:
4747
4848``` bash
4949# Start the server
50- php -S localhost:8000 examples/02 -discovery-http -userprofile/server.php
50+ php -S localhost:8000 examples/http -discovery-userprofile/server.php
5151
5252# Test with MCP Inspector
5353npx @modelcontextprotocol/inspector http://localhost:8000
@@ -61,9 +61,9 @@ curl -X POST http://localhost:8000 \
6161
6262## STDIO Examples
6363
64- ### 01. Discovery STDIO Calculator
64+ ### Discovery Calculator
6565
66- ** File** : ` examples/01 -discovery-stdio -calculator/ `
66+ ** File** : ` examples/stdio -discovery-calculator/ `
6767
6868** What it demonstrates:**
6969- Attribute-based discovery using ` #[McpTool] ` and ` #[McpResource] `
@@ -87,14 +87,14 @@ public function getConfiguration(): array
8787** Usage:**
8888``` bash
8989# Interactive testing
90- npx @modelcontextprotocol/inspector php examples/01 -discovery-stdio -calculator/server.php
90+ npx @modelcontextprotocol/inspector php examples/stdio -discovery-calculator/server.php
9191
92- # Or configure in MCP client: php examples/01 -discovery-stdio -calculator/server.php
92+ # Or configure in MCP client: php examples/stdio -discovery-calculator/server.php
9393```
9494
95- ### 03. Manual Registration STDIO
95+ ### Explicit Registration
9696
97- ** File** : ` examples/03-manual -registration-stdio / `
97+ ** File** : ` examples/stdio-explicit -registration/ `
9898
9999** What it demonstrates:**
100100- Manual registration of tools, resources, and prompts
@@ -109,9 +109,9 @@ $server = Server::builder()
109109 ->addPrompt([SimpleHandlers::class, 'greetingPrompt'], 'personalized_greeting')
110110```
111111
112- ### 05. STDIO Environment Variables
112+ ### Environment Variables
113113
114- ** File** : ` examples/05- stdio-env-variables/ `
114+ ** File** : ` examples/stdio-env-variables/ `
115115
116116** What it demonstrates:**
117117- Environment variable integration
@@ -123,9 +123,9 @@ $server = Server::builder()
123123- Conditional behavior based on environment
124124- Environment validation and defaults
125125
126- ### 06. Custom Dependencies STDIO
126+ ### Custom Dependencies
127127
128- ** File** : ` examples/06 -custom-dependencies-stdio / `
128+ ** File** : ` examples/stdio -custom-dependencies/ `
129129
130130** What it demonstrates:**
131131- Dependency injection with PSR-11 containers
@@ -143,9 +143,9 @@ $server = Server::builder()
143143 ->setDiscovery(__DIR__, ['.'])
144144```
145145
146- ### 09. Cached Discovery STDIO
146+ ### Cached Discovery
147147
148- ** File** : ` examples/09 -cached-discovery-stdio / `
148+ ** File** : ` examples/stdio -cached-discovery/ `
149149
150150** What it demonstrates:**
151151- Discovery caching for improved performance
@@ -165,9 +165,9 @@ $server = Server::builder()
165165
166166## HTTP Examples
167167
168- ### 02. Discovery HTTP User Profile
168+ ### Discovery User Profile
169169
170- ** File** : ` examples/02 -discovery-http -userprofile/ `
170+ ** File** : ` examples/http -discovery-userprofile/ `
171171
172172** What it demonstrates:**
173173- HTTP transport with StreamableHttpTransport
@@ -195,17 +195,17 @@ public function generateBio(string $userId, string $tone = 'professional'): arra
195195** Usage:**
196196``` bash
197197# Start the HTTP server
198- php -S localhost:8000 examples/02 -discovery-http -userprofile/server.php
198+ php -S localhost:8000 examples/http -discovery-userprofile/server.php
199199
200200# Test with MCP Inspector
201201npx @modelcontextprotocol/inspector http://localhost:8000
202202
203203# Or configure in MCP client: http://localhost:8000
204204```
205205
206- ### 04. Combined Registration HTTP
206+ ### Combined Registration
207207
208- ** File** : ` examples/04 -combined-registration-http / `
208+ ** File** : ` examples/http -combined-registration/ `
209209
210210** What it demonstrates:**
211211- Mixing attribute discovery with manual registration
@@ -220,9 +220,9 @@ $server = Server::builder()
220220 ->addResource([ManualHandlers::class, 'getPriorityConfig'], 'config://priority')
221221```
222222
223- ### 07. Complex Tool Schema HTTP
223+ ### Complex Tool Schema
224224
225- ** File** : ` examples/07 -complex-tool-schema-http / `
225+ ** File** : ` examples/http -complex-tool-schema/ `
226226
227227** What it demonstrates:**
228228- Advanced JSON schema definitions
@@ -243,9 +243,9 @@ $server = Server::builder()
243243public function scheduleEvent(array $eventData): array
244244```
245245
246- ### 08. Schema Showcase Streamable
246+ ### Schema Showcase
247247
248- ** File** : ` examples/08 -schema-showcase-streamable / `
248+ ** File** : ` examples/http -schema-showcase/ `
249249
250250** What it demonstrates:**
251251- Comprehensive JSON schema features
0 commit comments