Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
McpServerServiceProvider
n/a
0 / 0
n/a
0 / 0
1
n/a
0 / 0
 register
n/a
0 / 0
n/a
0 / 0
1
1<?php
2namespace Apie\McpServer;
3
4use Apie\ServiceProviderGenerator\UseGeneratedMethods;
5use Illuminate\Support\ServiceProvider;
6
7/**
8 * This file is generated with apie/service-provider-generator from file: mcp_server.yaml
9 * @codeCoverageIgnore
10 */
11class McpServerServiceProvider extends ServiceProvider
12{
13    use UseGeneratedMethods;
14
15    public function register()
16    {
17        $this->app->singleton(
18            \Apie\McpServer\RunMcpServerCommand::class,
19            function ($app) {
20                return new \Apie\McpServer\RunMcpServerCommand(
21                    $app->make(\Apie\McpServer\Factory\RunnerFactoryInterface::class),
22                    $app->make(\Apie\McpServer\Tool\ToolFactory::class),
23                    $app->make(\Apie\McpServer\Tool\ToolRunner::class)
24                );
25            }
26        );
27        \Apie\ServiceProviderGenerator\TagMap::register(
28            $this->app,
29            \Apie\McpServer\RunMcpServerCommand::class,
30            array(
31              0 =>
32              array(
33                'name' => 'console.command',
34              ),
35            )
36        );
37        $this->app->tag([\Apie\McpServer\RunMcpServerCommand::class], 'console.command');
38        $this->app->bind(\Apie\McpServer\Factory\RunnerFactoryInterface::class, \Apie\McpServer\Factory\RunnerFactory::class);
39        
40        $this->app->singleton(
41            \Apie\McpServer\Factory\RunnerFactory::class,
42            function ($app) {
43                return new \Apie\McpServer\Factory\RunnerFactory(
44                    $app->make('logger')
45                );
46            }
47        );
48        $this->app->singleton(
49            \Apie\McpServer\Tool\ToolRunner::class,
50            function ($app) {
51                return new \Apie\McpServer\Tool\ToolRunner(
52                
53                );
54            }
55        );
56        $this->app->singleton(
57            \Apie\McpServer\Tool\ToolFactory::class,
58            function ($app) {
59                return new \Apie\McpServer\Tool\ToolFactory(
60                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
61                    $app->make(\Apie\SchemaGenerator\SchemaGenerator::class),
62                    $app->make(\Apie\Core\BoundedContext\BoundedContextHashmap::class),
63                    $app->make(\Apie\Common\ActionDefinitionProvider::class)
64                );
65            }
66        );
67        
68    }
69}