Add support for icons and website url (#141)
This commit is contained in:
parent
660f150361
commit
5804ba9773
1 changed files with 279 additions and 22 deletions
|
|
@ -13,11 +13,18 @@
|
|||
require_once dirname(__DIR__).'/bootstrap.php';
|
||||
chdir(__DIR__);
|
||||
|
||||
use Mcp\Schema\Icon;
|
||||
use Mcp\Server;
|
||||
use Mcp\Server\Session\FileSessionStore;
|
||||
|
||||
$server = Server::builder()
|
||||
->setServerInfo('Schema Showcase', '1.0.0')
|
||||
->setServerInfo(
|
||||
'Schema Showcase',
|
||||
'1.0.0',
|
||||
'A showcase server demonstrating MCP schema capabilities.',
|
||||
[new Icon('https://www.php.net/images/logos/php-logo-white.svg', 'image/svg+xml', ['any'])],
|
||||
'https://github.com/modelcontextprotocol/php-sdk',
|
||||
)
|
||||
->setContainer(container())
|
||||
->setLogger(logger())
|
||||
->setSession(new FileSessionStore(__DIR__.'/sessions'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue