pull/715/head
Travis Fischer 2025-06-06 00:19:59 +07:00
rodzic 97ef693abc
commit ea69f55bdf
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -5,7 +5,7 @@ import type { GatewayHonoContext, McpToolCallResponse } from './types'
import { cfValidateJsonSchemaObject } from './cf-validate-json-schema-object'
export async function createHttpResponseFromMcpToolCallResponse(
ctx: GatewayHonoContext,
_ctx: GatewayHonoContext,
{
tool,
deployment,
@ -21,6 +21,11 @@ export async function createHttpResponseFromMcpToolCallResponse(
500,
`Internal logic error for origin adapter type "${deployment.originAdapter.type}"`
)
assert(
!toolCallResponse.isError,
502,
`MCP tool "${tool.name}" returned an error.`
)
if (tool.outputSchema) {
assert(

Wyświetl plik

@ -35,6 +35,7 @@
- MCP origin server support
- add support for custom headers on responses
- how to handle binary bodies and responses?
- add requestId to all JSON error responses
## TODO Post-MVP