Skip to content

RequiresHttp ​

Type
Class
Namespace
craft\mcp\attributes
Inherits
craft\mcp\attributes\RequiresHttp
Since
5.12.0

Marks an MCP capability that only works over HTTP, such as one that returns URLs authenticated by the MCP access token.

The stdio server started by php craft mcp:serve does not offer these capabilities.

View source