Skip to content

fix(connectors): aggregate per-connector instructions into server metadata#152

Merged
suleimansh merged 1 commit into
mainfrom
fix/connectors-instructions
Jul 2, 2026
Merged

fix(connectors): aggregate per-connector instructions into server metadata#152
suleimansh merged 1 commit into
mainfrom
fix/connectors-instructions

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Closes #146.

mountConnectors only read the server-level instructions option and never consumed Connector.instructions, so per-connector instructions set via defineConnector were silently dropped — including in both reference connectors (connector-github, connector-google-drive), the code third parties copy.

Now a composeInstructions helper combines them: server-level text first, then each connector's text under a ## <name> heading so the agent knows which tools it applies to. Omitted entirely when nothing sets instructions.

Three new kit tests cover aggregation, server-level ordering, and the empty case. pnpm typecheck + pnpm test (11/11) green. Patch changeset included.

…adata

mountConnectors only read the server-level instructions option and never
consumed Connector.instructions, so per-connector instructions set via
defineConnector were silently dropped. Compose them into the server
instructions: server-level text first, then each connector's text under a
heading named after the connector.

Closes #146
@suleimansh suleimansh added bug Something isn't working priority: high Should be addressed soon labels Jul 2, 2026
@suleimansh suleimansh self-assigned this Jul 2, 2026
@suleimansh suleimansh merged commit a037b8c into main Jul 2, 2026
2 checks passed
@suleimansh suleimansh deleted the fix/connectors-instructions branch July 2, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: high Should be addressed soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

connectors: per-connector instructions is silently dropped by mountConnectors

1 participant