agent/php/Mcp
Snider 3f5f4d15fe fix(mcp): SessionArtifact passes description as metadata array
AgentSession::addArtifact expects ?array $metadata in the third
argument slot; the MCP tool was passing the optional description
string directly, producing a TypeError whenever a caller supplied a
non-null description. Wrap the description into a metadata array so
the call matches the model signature, and add a feature test that
exercises the MCP handler end-to-end to prevent regression.

Closes tasks.lthn.sh/view.php?id=95

Co-authored-by: Codex <noreply@openai.com>
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-23 18:10:21 +01:00
..
Prompts revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Servers revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Tools/Agent fix(mcp): SessionArtifact passes description as metadata array 2026-04-23 18:10:21 +01:00
.DS_Store revert fcb9c189e5 2026-04-23 12:32:57 +01:00