Skip to content

Commit 496359b

Browse files
anandgupta42claude
andcommitted
feat(mcp): make answer_commit optional in the server instructions
Committing was a round trip on every data question. The analyst method now ends with a `FINAL ANSWER:` line that names every requested item (an entity and its related item both); `answer_commit` stays available as an optional check. Step 1 points at the startup connection list. Tests: `server.test.ts` (ALTIMATE_MCP_E2E=1) instruction checks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 4c8490f commit 496359b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import { InstallationVersion } from "@opencode-ai/core/installation/version"
1717

1818
export const SERVER_INSTRUCTIONS = [
1919
"Analyst method for data questions:",
20-
"1. Connections are listed below; warehouse_list refreshes them with columns and a sample row. If none fit, warehouse_add one.",
20+
"1. Connections are listed below (warehouse_list adds columns and a sample row); if none fit, warehouse_add one.",
2121
"2. Check stored value formats before filtering or joining: sql_execute `tables` returns value profiles in the same call as your queries.",
2222
"3. Compute in the database; chain dependent steps (any connection) in one sql_execute `queries` call.",
2323
"4. Cross-connection joins: sql_materialize the smaller filtered side into `scratch` and join there.",
24-
"5. Finish with answer_commit (`asked` = the requested items, one field each); reply with exactly its FINAL ANSWER text.",
24+
"5. End with `FINAL ANSWER: <value(s)>` naming every requested item (entity and related item both); answer_commit is optional.",
2525
].join("\n")
2626

2727
/**

0 commit comments

Comments
 (0)