Skip to main content

Artifact types

The API Portal & MCP Hub can serve three artifact types—APIs, Model Context Protocol (MCP) servers, and API workflows. Which of them a portal serves is set by the operator in configs/config.toml, under the [api_portal.artifacts] table:

[api_portal.artifacts]
enabled_types = ["apis", "mcp-servers", "api-workflows"]

enabled_types is an allowlist. Its valid entries are:

EntryServes
apisREST, WebSocket, GraphQL, WebSub, and SOAP APIs
mcp-serversMCP servers
api-workflowsAPI workflows

Any combination is valid. Omit the [api_portal.artifacts] section entirely to serve all three—that is the default.

How it behaves​

  • A type you leave out disappears completely. It gets no navigation entry and no landing-page section, and its routes return 404 rather than rendering an empty page.
  • The order you list types in is the order they appear. Listing mcp-servers first shows MCP servers first in the navigation and in the landing-page heading.
  • Configuration errors fail fast. An unrecognised entry (for example, a typo) aborts startup with a fatal error, so a mistake can't silently drop a type. An empty list starts the portal but leaves it with nothing to browse, and logs a warning.

Examples​

An API-only portal:

[api_portal.artifacts]
enabled_types = ["apis"]

An MCP-only hub:

[api_portal.artifacts]
enabled_types = ["mcp-servers"]

APIs and MCP servers, without workflows:

[api_portal.artifacts]
enabled_types = ["apis", "mcp-servers"]

Checking the current setting​

In the portal's organization settings, the Configuration tab shows an Artifact types served field. It is read-only—the value comes from [api_portal.artifacts] in config.toml and can only be changed there.

Was this page helpful?