/** * @fileoverview `brapi_connect` — session-bootstrap tool. Authenticates to a * BrAPI v2 server, registers the connection under a named alias, loads the * capability profile (via CapabilityRegistry), and returns the full * orientation envelope inline. One call fully orients the agent — the same * envelope is available on-demand via `brapi_server_info`. * * @module mcp-server/tools/definitions/brapi-connect.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const brapiConnect: import("@cyanheads/mcp-ts-core").ToolDefinition; auth: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ mode: z.ZodLiteral<"bearer">; token: z.ZodString; }, z.core.$strip>, z.ZodObject<{ mode: z.ZodLiteral<"api_key">; apiKey: z.ZodString; headerName: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ mode: z.ZodLiteral<"sgn">; username: z.ZodString; password: z.ZodString; }, z.core.$strip>, z.ZodObject<{ mode: z.ZodLiteral<"oauth2">; clientId: z.ZodString; clientSecret: z.ZodString; tokenUrl: z.ZodOptional; }, z.core.$strip>], "mode">>; alias: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ alias: z.ZodString; baseUrl: z.ZodString; server: z.ZodObject<{ name: z.ZodOptional; description: z.ZodOptional; organizationName: z.ZodOptional; organizationURL: z.ZodOptional; documentationURL: z.ZodOptional; contactEmail: z.ZodOptional; brapiVersion: z.ZodOptional; }, z.core.$strip>; auth: z.ZodObject<{ mode: z.ZodEnum<{ none: "none"; sgn: "sgn"; oauth2: "oauth2"; api_key: "api_key"; bearer: "bearer"; }>; headerName: z.ZodOptional; expiresAt: z.ZodOptional; }, z.core.$strip>; capabilities: z.ZodObject<{ supportedCount: z.ZodNumber; supported: z.ZodArray; notableGaps: z.ZodArray; }, z.core.$strip>; dialect: z.ZodObject<{ id: z.ZodString; source: z.ZodEnum<{ "env-override": "env-override"; "url-pattern": "url-pattern"; "server-name": "server-name"; "organization-name": "organization-name"; fallback: "fallback"; }>; envVar: z.ZodString; disabledSearchEndpoints: z.ZodArray; notes: z.ZodArray; verifiedMappingCount: z.ZodOptional; inferredMappingCount: z.ZodOptional; }, z.core.$strip>; content: z.ZodObject<{ crops: z.ZodArray; studyCount: z.ZodOptional; germplasmCount: z.ZodOptional; programCount: z.ZodOptional; locationCount: z.ZodOptional; }, z.core.$strip>; attribution: z.ZodOptional; }, z.core.$strip>>; notes: z.ZodArray; fetchedAt: z.ZodString; }, z.core.$strip>, readonly [{ readonly reason: "auth_token_exchange_failed"; readonly code: JsonRpcErrorCode.Forbidden; readonly when: "SGN or OAuth token exchange against the BrAPI /token endpoint failed"; readonly recovery: "Verify the credentials and that the server exposes /token before retrying."; }, { readonly reason: "auth_no_access_token"; readonly code: JsonRpcErrorCode.Forbidden; readonly when: "Token endpoint responded but did not return an access_token"; readonly recovery: "Confirm the credentials are valid and the upstream IdP issues access tokens for this grant."; }], undefined>; //# sourceMappingURL=brapi-connect.tool.d.ts.map