Skip to content

Commit f8fb664

Browse files
hkaltaiclaude
andcommitted
refactor: drop the structured passthrough no tool reaches; dbt_lineage takes the declared, capped path
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 353523d commit f8fb664

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

  • packages/opencode/src/altimate/mcp-server

‎packages/opencode/src/altimate/mcp-server/server.ts‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,8 @@ export async function createServer(options: ServeOptions = {}) {
222222
const clarified = request.params.name === "answer_commit" ? await clarifyReading(request.params.arguments, result, extra.signal) : undefined
223223
if (clarified) return { content: [{ type: "text" as const, text: clarified }], isError: true }
224224
const isError = resultFailed(result)
225-
const structured = result.metadata?.structuredContent
226225
return {
227226
content: [{ type: "text" as const, text: result.output }, ...resultLinks(result.metadata)],
228-
// Tools outside the declared set may still hand over a structured result of their own, held to
229-
// the same cap: past it only the text goes.
230-
...(structured &&
231-
typeof structured === "object" &&
232-
!isError &&
233-
!STRUCTURED_TOOLS.has(request.params.name) &&
234-
Buffer.byteLength(JSON.stringify(structured)) <= STRUCTURED_MAX_BYTES
235-
? { structuredContent: structured as Record<string, unknown> }
236-
: {}),
237227
isError,
238228
...(STRUCTURED_TOOLS.has(request.params.name) && {
239229
structuredContent: structuredResult(request.params.name, result.metadata, result.output),

0 commit comments

Comments
 (0)