Kick off the SDK based on Symfony's MCP SDK
This commit is contained in:
parent
0044ffb365
commit
ee0dffe369
1 changed files with 3924 additions and 0 deletions
29
examples/cli/README.md
Normal file
29
examples/cli/README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Example app with CLI
|
||||
|
||||
This is just for testing and debugging purposes.
|
||||
|
||||
|
||||
Install and create symlink with:
|
||||
|
||||
```bash
|
||||
cd /path/to/your/project/examples/cli
|
||||
composer update
|
||||
rm -rf vendor/mcp/sdk/src
|
||||
ln -s /path/to/your/project/src /path/to/your/project/examples/cli/vendor/mcp/sdk/src
|
||||
```
|
||||
|
||||
Run the CLI with:
|
||||
|
||||
```bash
|
||||
DEBUG=1 php index.php
|
||||
```
|
||||
|
||||
You will see debug outputs to help you understand what is happening.
|
||||
|
||||
In this terminal you can now test add some json strings. See `example-requests.json`.
|
||||
|
||||
Run with Inspector:
|
||||
|
||||
```bash
|
||||
npx @modelcontextprotocol/inspector php index.php
|
||||
```
|
||||
Loading…
Reference in a new issue