Skip to content

chore(tools): unify tool text results and driver resolution helpers#263

Open
Mochxd wants to merge 2 commits intoappium:mainfrom
Mochxd:chore/unify-tool-error-contract
Open

chore(tools): unify tool text results and driver resolution helpers#263
Mochxd wants to merge 2 commits intoappium:mainfrom
Mochxd:chore/unify-tool-error-contract

Conversation

@Mochxd
Copy link
Copy Markdown
Contributor

@Mochxd Mochxd commented Apr 13, 2026

Adds shared helpers (textToolResult, requireDriver, toolErrorMessage) and migrates a first set of tools for consistent isError handling. Types the addTool logging wrapper via FastMCP.

Related: enhancement proposal for MCP tool error/response contract (issue link in PR).

Adds shared helpers (textToolResult, requireDriver, toolErrorMessage) and migrates a first set of tools for consistent isError handling. Types the addTool logging wrapper via FastMCP.

Related: enhancement proposal for MCP tool error/response contract (issue link in PR).
@Mochxd
Copy link
Copy Markdown
Contributor Author

Mochxd commented Apr 13, 2026

related to #262

@SrinivasanTarget
Copy link
Copy Markdown
Member

other tool files still use getDriver + throw + manual ContentResult. Are you planning for more PRs to address the issue on other tools?

@Mochxd
Copy link
Copy Markdown
Contributor Author

Mochxd commented Apr 15, 2026

@SrinivasanTarget it is just a poc 🤙
if we confirm the behavior i will do other tools what do u think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants