Recommend this page to a friend! |
Classes of Mohamed Ahmed | Laravel MCP SDK | docs/api/_FastMCP.md | Download |
|
![]() FastMCPNamespace: `` A fast implementation of the MCP server interface. This class provides a lightweight and efficient implementation of the MCP server with support for tools, resources, prompts, and lifecycle management. @package LaravelMCP\MCP\Server Methods__constructCreate a new FastMCP instance. @param MCPServerInterface|null $server Optional server instance to use toolRegister a tool with the server. @param string $name Tool name @param array $parameters Tool parameters @return Closure Registration handler resourceRegister a resource with the server. @param string $uri Resource URI @return Closure Registration handler promptRegister a prompt with the server. @param string $name Prompt name @param array $arguments Prompt arguments @return Closure Registration handler lifespanSet the server lifecycle handler. @param Closure $handler Lifecycle handler function getServerGet the underlying server instance. @return MCPServerInterface getDependenciesGet the list of server dependencies. @return array getLifespanGet the server lifecycle handler. @return Closure|null handleCompletionHandle completion requests. @param array $arguments Completion arguments @param array $messages Message history @return array Completion response |