Skip to content

Commit 345b94d

Browse files
authored
Rename example folders (#87)
1 parent cecfa0c commit 345b94d

File tree

30 files changed

+32
-32
lines changed

30 files changed

+32
-32
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151
},
5252
"autoload-dev": {
5353
"psr-4": {
54-
"Mcp\\Example\\StdioCalculatorExample\\": "examples/01-discovery-stdio-calculator/",
55-
"Mcp\\Example\\HttpUserProfileExample\\": "examples/02-discovery-http-userprofile/",
56-
"Mcp\\Example\\ManualStdioExample\\": "examples/03-manual-registration-stdio/",
57-
"Mcp\\Example\\CombinedHttpExample\\": "examples/04-combined-registration-http/",
58-
"Mcp\\Example\\StdioEnvVariables\\": "examples/05-stdio-env-variables/",
59-
"Mcp\\Example\\DependenciesStdioExample\\": "examples/06-custom-dependencies-stdio/",
60-
"Mcp\\Example\\ComplexSchemaHttpExample\\": "examples/07-complex-tool-schema-http/",
61-
"Mcp\\Example\\SchemaShowcaseExample\\": "examples/08-schema-showcase-streamable/",
62-
"Mcp\\Example\\CachedDiscoveryExample\\": "examples/09-cached-discovery-stdio/",
54+
"Mcp\\Example\\HttpCombinedRegistration\\": "examples/http-combined-registration/",
55+
"Mcp\\Example\\HttpComplexToolSchema\\": "examples/http-complex-tool-schema/",
56+
"Mcp\\Example\\HttpDiscoveryUserProfile\\": "examples/http-discovery-userprofile/",
57+
"Mcp\\Example\\HttpSchemaShowcase\\": "examples/http-schema-showcase/",
58+
"Mcp\\Example\\StdioCachedDiscovery\\": "examples/stdio-cached-discovery/",
59+
"Mcp\\Example\\StdioCustomDependencies\\": "examples/stdio-custom-dependencies/",
60+
"Mcp\\Example\\StdioDiscoveryCalculator\\": "examples/stdio-discovery-calculator/",
61+
"Mcp\\Example\\StdioEnvVariables\\": "examples/stdio-env-variables/",
62+
"Mcp\\Example\\StdioExplicitRegistration\\": "examples/stdio-explicit-registration/",
6363
"Mcp\\Tests\\": "tests/"
6464
}
6565
},

examples/04-combined-registration-http/DiscoveredElements.php renamed to examples/http-combined-registration/DiscoveredElements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Mcp\Example\CombinedHttpExample;
12+
namespace Mcp\Example\HttpCombinedRegistration;
1313

1414
use Mcp\Capability\Attribute\McpResource;
1515
use Mcp\Capability\Attribute\McpTool;

examples/04-combined-registration-http/ManualHandlers.php renamed to examples/http-combined-registration/ManualHandlers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Mcp\Example\CombinedHttpExample;
12+
namespace Mcp\Example\HttpCombinedRegistration;
1313

1414
use Psr\Log\LoggerInterface;
1515

examples/04-combined-registration-http/server.php renamed to examples/http-combined-registration/server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
chdir(__DIR__);
1515

1616
use Laminas\HttpHandlerRunner\Emitter\SapiEmitter;
17-
use Mcp\Example\CombinedHttpExample\ManualHandlers;
17+
use Mcp\Example\HttpCombinedRegistration\ManualHandlers;
1818
use Mcp\Server;
1919
use Mcp\Server\Session\FileSessionStore;
2020
use Mcp\Server\Transport\StreamableHttpTransport;

examples/07-complex-tool-schema-http/McpEventScheduler.php renamed to examples/http-complex-tool-schema/McpEventScheduler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Mcp\Example\ComplexSchemaHttpExample;
12+
namespace Mcp\Example\HttpComplexToolSchema;
1313

1414
use Mcp\Capability\Attribute\McpTool;
15-
use Mcp\Example\ComplexSchemaHttpExample\Model\EventPriority;
16-
use Mcp\Example\ComplexSchemaHttpExample\Model\EventType;
15+
use Mcp\Example\HttpComplexToolSchema\Model\EventPriority;
16+
use Mcp\Example\HttpComplexToolSchema\Model\EventType;
1717
use Psr\Log\LoggerInterface;
1818

1919
final class McpEventScheduler

examples/07-complex-tool-schema-http/Model/EventPriority.php renamed to examples/http-complex-tool-schema/Model/EventPriority.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Mcp\Example\ComplexSchemaHttpExample\Model;
12+
namespace Mcp\Example\HttpComplexToolSchema\Model;
1313

1414
enum EventPriority: int
1515
{

examples/07-complex-tool-schema-http/Model/EventType.php renamed to examples/http-complex-tool-schema/Model/EventType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Mcp\Example\ComplexSchemaHttpExample\Model;
12+
namespace Mcp\Example\HttpComplexToolSchema\Model;
1313

1414
enum EventType: string
1515
{

examples/02-discovery-http-userprofile/McpElements.php renamed to examples/http-discovery-userprofile/McpElements.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Mcp\Example\HttpUserProfileExample;
12+
namespace Mcp\Example\HttpDiscoveryUserProfile;
1313

1414
use Mcp\Capability\Attribute\CompletionProvider;
1515
use Mcp\Capability\Attribute\McpPrompt;
@@ -37,7 +37,7 @@ final class McpElements
3737
public function __construct(
3838
private readonly LoggerInterface $logger,
3939
) {
40-
$this->logger->debug('HttpUserProfileExample McpElements instantiated.');
40+
$this->logger->debug('HttpDiscoveryUserProfile McpElements instantiated.');
4141
}
4242

4343
/**

examples/02-discovery-http-userprofile/UserIdCompletionProvider.php renamed to examples/http-discovery-userprofile/UserIdCompletionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Mcp\Example\HttpUserProfileExample;
12+
namespace Mcp\Example\HttpDiscoveryUserProfile;
1313

1414
use Mcp\Capability\Prompt\Completion\ProviderInterface;
1515

0 commit comments

Comments
 (0)