| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | /** |
| 6: | * This file is part of the Nexus MCP SDK package. |
| 7: | * |
| 8: | * (c) 2026 John Paul E. Balandan, CPA <paulbalandan@gmail.com> |
| 9: | * |
| 10: | * For the full copyright and license information, please view |
| 11: | * the LICENSE file that was distributed with this source code. |
| 12: | */ |
| 13: | |
| 14: | namespace Nexus\Mcp\Core\Transport; |
| 15: | |
| 16: | /** |
| 17: | * Marks a transport that mirrors `x-mcp-header` tool parameters into request headers. |
| 18: | * |
| 19: | * The obligations the spec places on a client only bind on such a transport: it must exclude a tool whose |
| 20: | * declarations violate the scanner constraints from its `tools/list` result, and it must mirror the annotated |
| 21: | * arguments of a `tools/call` into `Mcp-Param-{Name}` headers. A transport without the marker (stdio) may |
| 22: | * ignore the annotations entirely, so the client leaves its tool listing untouched. |
| 23: | * |
| 24: | * @see https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http#custom-headers-from-tool-parameters |
| 25: | */ |
| 26: | interface ParameterHeaderMirroringInterface extends TransportInterface |
| 27: | { |
| 28: | } |
| 29: |