Connector Design Principles
Last updated
We recommend that you follow these principles:
Keep the connector state local to the running process. Avoid a shared global state that could break concurrent execution.
Return structured errors rather than free-form output. The sample scripts use JSON-RPC-style error codes for parse, method, parameter, and internal errors.
Treat stdout as the protocol channel and reserve stderr for diagnostics.
Expect versioned evolution. Future protocol changes should be additive or guarded by version/capability checks.
Last updated