How is an integration / connector defined?
Manifest or schema format; code vs config; codegen from OpenAPI; versioning; how many integrations ship.
Verdict
Nango and ACI make a new API cheapest to add because an integration is data. Activepieces, Pipedream and Metorial have the largest catalogs, written by hand as code.
Declarative data. Nango keeps about 1,000 providers in one providers.yaml, with auth URLs, a proxy base URL, rate-limit headers and pagination recipes. Variants inherit through alias:. The integration logic (syncs and actions) is TypeScript you write yourself. ACI has 98 apps as app.json plus functions.json. Of its 987 functions, 971 are pure REST config with a visible parameter list, and 16 are routed to Python connector classes.
Hand-written code per integration. Pipedream has about 3,300 app files with roughly 11,800 actions and 4,600 sources. Each component has its own semver version, and CI checks the version floor. Activepieces ships 736 community and 27 core pieces built with createPiece/createAction, plus audience and classification metadata. Metorial has 1,149 packages, each with a slate.json manifest and tools built from Zod schemas. Its chat adapter defines 28 tools and 9 triggers, not the “about 80” in the answer, and only Slack implements it. Klavis has 101 separate MCP server directories. Several are benchmark variants, and none share a manifest.
Generated from specs. Executor turns an OpenAPI spec, a GraphQL endpoint, an MCP server or a Google Discovery document into stored tool rows, and re-lists remote MCP tools after a TTL. merge-mcp downloads Merge’s OpenAPI schema at every start and keeps only the operations the account may read or write. The editor found that its path and query parameter schemas are nested one level too deep, so clients see no types. ContextForge federates upstream MCP servers and lets you register single REST endpoints by hand with a method and a path_template. It also ships a 135-server mcp-catalog.yml.
Not in the repo. Composio toolkits are defined on its backend. The SDK can only fetch them or generate typed stubs.
Pick: Nango or ACI to add REST APIs as reviewed config. Pick: Activepieces or Pipedream for a large catalog of hand-tuned actions and triggers. Pick: Executor to turn your own OpenAPI or GraphQL APIs into tools with no code.
Per-project answers
ComposioHQ/composio
answeredIntegrations are called toolkits in Composio. Each toolkit is a collection of related tools (e.g., GitHub, Slack, Gmail) identified by a unique slug. The SDKs do not define toolkits in code — they are defined server-side on the Composio backend and fetched at runtime. The Toolkits model class (Python: python/composio/core/models/toolkits.py:33-307) provides list(), get(slug:), get_many(slugs:), and methods like recommend_scopes() and list_grant_contexts() for OAuth scope recommendations. The docs generation script docs/scripts/generate-toolkits.ts:1-80 reveals the scale: it issues ~6500 requests across the catalog fetching metadata for ~2100 toolkits. Each toolkit carries name, description, auth_config_details (which auth modes the toolkit supports and what fields each requires), a list of tools, and optional triggers. Versioning is explicit: you can set SDK-level toolkitVersions (a dict mapping toolkit slugs to version strings like "20250909_00") and the backend manages a full changelog accessible via changelog() (Python: python/composio/core/models/toolkits.py:129-142). The docs site fetches the raw OpenAPI spec from https://backend.composio.dev/api/v3/openapi.json for its API reference (see docs/scripts/fetch-openapi.mjs) but that is for documentation, not for codegen-ing toolkit definitions. OpenAPI codegen is not present in this repo for toolkit creation — it is a server-side process.
activepieces/activepieces
answeredAn integration/connector is called a piece and is defined as a TypeScript class in the @activepieces/pieces-framework SDK. 764 pieces ship: 736 under packages/pieces/community/ and 28 core pieces under packages/pieces/core/.
Piece creation uses the createPiece() factory with a declarative params object: { displayName, description, auth, categories, actions: [...], triggers: [...] } (packages/pieces/framework/src/lib/piece.ts:78-80). Each piece exports its index.ts as the entry point — for example, the webhook piece is a single createPiece({ auth: PieceAuth.None(), actions: [returnResponse], triggers: [catchWebhook] }) call (packages/pieces/core/webhook/src/index.ts:7-17).
Actions are defined via createAction({ name, displayName, description, props, run }) (packages/pieces/framework/src/lib/action/action.ts:71-100). The props field accepts a declarative PiecePropertyMap of input fields: Property.Text, Property.Number, Property.File, Property.Dropdown, Property.StaticDropdown, Property.Array, Property.Object, Property.Json, Property.Markdown, and property-grouping via propertyGroups for UI layout (packages/pieces/framework/src/lib/piece-metadata.ts:82-108). Actions carry optional audience (human/ai/both), aiMetadata, and classification (READ/SEARCH/WRITE/DESTRUCTIVE).
Triggers follow the same pattern with createTrigger(...), adding type (one of TriggerStrategy: WEBHOOK, APP_WEBHOOK, POLLING, MANUAL), sampleData, optional handshakeConfiguration/renewConfiguration, and lifecycle hooks onEnable/onDisable/run (packages/pieces/framework/src/lib/trigger/trigger.ts:41-60).
Metadata schema is defined as PieceMetadata: extends PieceBase (name, displayName, logoUrl, description, authors, version, auth, categories) with actions: Record<string, ActionBase> and triggers: Record<string, TriggerBase> (packages/pieces/framework/src/lib/piece-metadata.ts:134-145). Versioning is via semver in package.json, with minimumSupportedRelease/maximumSupportedRelease constraints in the piece body.
No OpenAPI codegen is used — all pieces are hand-written TypeScript against the SDK. The packages/pieces/framework JIT-installs each piece package into the sandbox by resolving its npm package (via archive bundle from the server or npm registry).
NangoHQ/nango
answeredIntegrations are defined in packages/providers/providers.yaml, a 29,523-line YAML file declaring 1,034 providers. Each entry includes display_name, categories, auth_mode, OAuth endpoints (authorization_url, token_url, refresh_params), proxy configuration (base_url with ${connectionConfig.*} templating, headers, verification), credential schemas, and connection config schemas. The YAML is loaded at runtime by packages/providers/lib/index.ts via js-yaml, with alias-based inheritance for provider variants. A separate providers.scopes.yaml defines OAuth scopes per provider. Code vs config: provider templates are static YAML; users create integrations ("provider configs") in a given environment, binding custom credentials. The IntegrationService class in integration.service.ts handles get/list/create/update/delete with rich error types. The buildIntegrationConfig helper transforms creation requests into DBCreateIntegration objects. Scripts (syncs/actions) are user-written TypeScript that can be bundled into nango-yaml format. The nango-yaml package's parser.ts parses v1/v2 format sync/action definitions. Versioning of deployed scripts is tracked via DBFunctionConfigVersion in the database. There is no OpenAPI codegen; integrations ship as curated YAML templates.
PipedreamHQ/pipedream
answeredComponent format. Every integration is a directory under components/{app-slug}/ containing an app file ({app}.app.mjs), action files (actions/*.mjs), source files (sources/*.mjs), a package.json, and shared helpers in common/. The repo has 3,402 integration directories (one per app slug).
App file. The app file exports an object with type: "app", app: "slug", propDefinitions (reusable dropdown-loading props), and methods (shared HTTP helpers, pagination wrappers, webhook lifecycle). It is the single source of shared authentication and API-call logic for all actions and sources in that integration.
Action file. Each action exports key (globally unique, e.g. github-create-issue), name, description, version (semver), type: "action", optional annotations (MCP hints), ai: "optimized", props, and an async run({ $ }) function. The $ parameter provides runtime context ($.export(), $.summary, $.service.db).
Versioning. Components follow strict semver. A dedicated CI workflow (component-registry-version-check.yaml) verifies that every changed component's version exceeds the registry floor, failing closed if the version is insufficient. New components start at 0.0.1.
Publishing. On push to master, the publish-components.yaml workflow uses a pd publish CLI to deploy changed .mjs action/source files to the Pipedream registry at api.pipedream.com/v1/components/registry. App files are separately pushed to a Supabase registry_app_files table. TypeScript components are compiled with esbuild before publishing. There are 12,073 action and 5,589 source .mjs files in the repository.
Klavis-AI/klavis
answeredEach integration is an MCP server in mcp_servers/. 105 servers ship with the repo. No single manifest format; servers in Python (Airtable: mcp_servers/airtable/server.py:1-80), Go (GitHub: mcp_servers/github/server.go:1-80), or TypeScript, each with Dockerfile. Code-defined via app.list_tools() and app.call_tool(). Strata config (open-strata/src/strata/config.py:13-87): MCPServerConfig dataclass with name, type, url/command, headers, env, auth, enabled. Stored in ~/.config/strata/servers.json. OpenAPI codegen (fern/generators.yml:1-69): Fern generates Python and TypeScript SDKs from openapi.json. Versions: Fern v3.5.0 (fern/fern.config.json:1-4); strata-mcp 1.0.2 (open-strata/pyproject.toml:3).
mcp_servers/ holds 101 server directories, not 105. The other entries are README and package files, and several directories are benchmark variants (*_toolathlon, *_mcpmark, *_atlas).aipotheosis-labs/aci
answeredAn integration (called an App) is defined declaratively as two JSON files in backend/apps/{app_name}/. The app.json file contains metadata: name, display_name, provider, version, description, categories, visibility, active status, security_schemes (with OAuth2 URLs, scopes, and placeholder client_id/client_secret as Jinja2 template variables), and default_security_credentials_by_scheme (apps/github/app.json:1-27). The functions.json file is an array of function definitions, each specifying name, description, tags, visibility, active, protocol ("rest" or "connector"), protocol_data (e.g. {"method": "GET", "path": "/repos/...", "server_url": "..."} for REST), and parameters as a JSON Schema (apps/github/functions.json:1-80). Parameters have visible and invisible properties — invisible params inject security defaults at execution time. The upsert-app CLI command (cli/commands/upsert_app.py:44-47) renders templates with environment-specific secrets, validates the JSON via AppUpsert Pydantic model, generates an OpenAI embedding for semantic search, and upserts into the apps and functions tables (upsert_app.py:84-103). There are 98 integrations in backend/apps/ (from accredible to zoho_desk). Most REST integrations are pure config; 10 have custom Python connector code in server/app_connectors/ (base.py, gmail.py, e2b.py, etc.). Versioning is a free-form string field per app; there is no automated OpenAPI codegen — integrations are manually authored.
upsert-app registers the app only. Functions are loaded by a separate upsert-functions command.IBM/mcp-context-forge
answeredIntegrations/connectors are defined as Gateways and Servers, both database-backed models with Pydantic schemas.
Gateway model (db.py class Gateway): Represents an upstream MCP server endpoint. Registered via GatewayService.register_gateway() which accepts a GatewayCreate schema. The schema defines: name (unique), url, transport (SSE, STREAMABLEHTTP), auth_type (basic, bearer, authheaders, oauth, query_param), OAuth config, mTLS certificates, refresh interval, gateway mode (cache or direct_proxy), team scoping, and visibility. During registration the gateway is contacted for capability negotiation and tool/resource/prompt aggregation.
Virtual Server model (db.py class Server): A logical grouping that associates a subset of tools/resources/prompts into a named server, exposed as a unified MCP endpoint.
Schema format: Tools, Resources, and Prompts are stored as database rows derived from gateway capability discovery, not from a manifest file. Each tool carries name, description, input_schema (JSON Schema), output_schema, auth_type/auth_value, OAuth config, URL, integration_type (REST, A2A, MCP), and metadata like tags, team_id, and visibility.
Code vs. config: All configuration is driven through the REST API at runtime. There is no pipeline that code-generates from OpenAPI specs. The GatewayCreate schema has ~40 configurable fields covering transport, auth, TLS, OAuth, passthrough headers, caching, and identity propagation. Team scoping and RBAC govern visibility.
Catalog: An MCP server catalog (mcpgateway_catalog_enabled) can bulk-import known servers from a YAML file (mcp-catalog.yml) with auto health-checking.
Versioning: There is no formal integration versioning. The protocol_version config field tracks the MCP protocol version. Gateways have a mcp_protocol_version field.
The project ships tens of built-in integration support mechanisms (7+ SSO providers, 4+ OAuth grant types, mTLS, query-param auth, custom CA certs) but defines no pre-packaged connector definitions for specific third-party APIs.
ToolCreate.integration_type defaults to REST (also A2A), so individual HTTP endpoints are registered by hand with method, input schema, path template and header/query mappings (mcpgateway/schemas.py L790-L830). The repo also ships mcp-catalog.yml, a curated list of 135 public remote MCP servers with seeded OAuth metadata.UsefulSoftwareCo/executor
answeredAn integration is defined by a slug, a kind (which plugin owns it), a description, an opaque config blob (never parsed by core), and a list of declared authMethods. The Integration interface in integration.ts (line 91) is the public projection — it carries no credentials and no plugin-internal config.
OpenAPI integrations (packages/plugins/openapi/src/sdk/plugin.ts): the user provides a spec URL or spec text, which is parsed by parse.ts, tools extracted via extract.ts, then compiled and stored as StoredOperation bindings in the OpenapiStore (store.ts). The integration config holds the spec reference, auth templates, and health-check config. Auth methods are derived from the spec's securitySchemes via deriveAuthenticationTemplateFromPreview().
GraphQL integrations (packages/plugins/graphql/src/sdk/plugin.ts): the user provides an endpoint URL, which is introspected to get the schema, then tools are generated per query/mutation.
MCP integrations (packages/plugins/mcp/src/sdk/plugin.ts): the user provides a server URL (streamable HTTP) or a stdio command. The server's capabilities are probed at connect time via probeMcpEndpointShape(), tools are discovered, and an MCP client connection is created through createMcpConnector().
Versioning: Specs are stored as immutable blobs with hash-addressed entries. Config migration is handled by per-plugin migrate-config.ts files that define schema transforms.
Auth template merge is shared across plugins via mergeAuthTemplates() in integration.ts (line 138): incoming entries with matching slugs replace existing ones; slug-less entries get a fresh custom_<id> slug.
Register count: The repo ships 3 first-party protocol plugins (openapi, graphql, mcp), plus provider extensions for Google and Microsoft APIs in the openapi plugin, and credential-provider plugins (1password, keychain, file-secrets, workos-vault, encrypted-secrets).
metorial/metorial
answeredEach integration is a self-contained TypeScript package under integrations/ with slate.json manifest. 1,149 integration packages. slate.json schema (slate.schema.json:1-43) requires name and supports categories, skills, logoUrl, networkIsolation, and timeout.
Core built via Slate.create() (packages/provider/src/specification/slate.ts:6-92). Takes SlateSpecification (config, auth, metadata), tools, triggers, adapters, trigger groups. Tools via SlateTool.input().output().handleInvocation() builder (packages/provider/src/action/tool.ts:38-48). Triggers via .triggerGroup().matches().map() (packages/provider/src/action/trigger.ts:50-57).
No code generation. Hand-written TypeScript. Protocol version slates@2026-01-01 (packages/proto/src/version.ts:1). Chat adapter defines about 80 tools/triggers (adapters/chat/src/adapter.ts) that integrations implement via .implement() and .register().
merge-api/merge-mcp
answeredIntegrations are defined entirely dynamically at runtime — there is no static manifest, config file, or codegen step. On startup, ToolManager.create (tool_manager.py:43-66) fetches the full OpenAPI 3.0 schema from the Merge API via MergeAPIClient.get_openapi_schema() (client.py:189-206), which calls GET /schema (without auth headers since the schema endpoint is public). This schema is passed to SchemaIndex.__init__ (schema_index.py:29-35), which indexes all path/operation entries by tag (model name), method (GET/POST/PATCH), and operationId. The SchemaParser (schema_parser.py) extracts path parameters, query parameters, and request-body component schemas from each operation and converts them into JSON Schema input_schema objects suitable for MCP tool definitions. The SchemaIndex._build_index_for_available_scopes method (schema_index.py:132-171) filters the index to only include operations whose tags match the account's enabled scopes (read/write permissions per model). Versioning is entirely server-driven — the schema version comes from the Merge API response; there is no local schema versioning or cache. The number of available integrations thus depends on the Merge account's linked-account configuration: each "common model" (e.g. Employee, Candidate, Account) that has at least read or write scope enabled generates one or more MCP tools.
← How is third-party authentication implemented? · How are integrations exposed to LLM agents? →