Skip to content

Manifest Configuration ​

The cumulocity.json manifest is generated automatically from your package metadata and the c8y.manifest configuration.

This is where the deployment identity of your service lives: context path, roles, resources, settings, probes, and related platform behavior.

Auto-generated Fields ​

The following fields are derived from your package.json automatically:

FieldSource
name (scope stripped)package.json name
versionpackage.json version
provider.namepackage.json author
provider.domainpackage.json author.url or homepage
provider.supportpackage.json bugs or author.email
contextPathdefaults to package name

For all available manifest options, see the Cumulocity Microservice Manifest documentation.

Why This Matters Early ​

The manifest is not only a deployment artifact. It affects runtime assumptions too:

  • the service context path used by generated clients,
  • the roles available to middleware and user assignment,
  • the tenant options keys that become part of the typed surface,
  • and the probe endpoints used by orchestration.

Custom Roles ​

Custom roles defined in the manifest are automatically available as TypeScript types for use in middleware and runtime code during development.

Health Probes ​

Health probe endpoints (/_c8y_nitro/liveness and /_c8y_nitro/readiness) are automatically injected if not manually defined.

If you define your own httpGet probes, the module respects those instead of generating defaults.

To tune probe timing while keeping the generated endpoints, set only the timing fields. The module merges in the generated httpGet path:

ts
export default defineNitroConfig({
  c8y: {
    manifest: {
      livenessProbe: { initialDelaySeconds: 60 },
      readinessProbe: { periodSeconds: 5, failureThreshold: 6 },
    },
  },
  modules: [c8y()],
})

MCP Servers ​

If your microservice serves an MCP endpoint, declare it with exposeMcpServers. Once the application is subscribed, Cumulocity AI Agent Manager registers it automatically, and MCP-aware clients such as mc8yp discover it from the manifest.

ts
export default defineNitroConfig({
  c8y: {
    manifest: {
      exposeMcpServers: [
        {
          name: 'my-service',
          description: 'Tools for working with my-service data',
          url: '/service/my-service/mcp',
          type: 'http',
          sendAuthentication: true,
        },
      ],
    },
  },
  modules: [c8y()],
})

Tenant Options (Settings) ​

Define your microservice's settings in the manifest to get type-safe keys for useTenantOption():

ts
export default defineConfig({
  c8y: {
    manifest: {
      settings: [
        { key: 'myOption', defaultValue: 'default' },
        { key: 'credentials.secret', defaultValue: 'change-me' }, // Encrypted option
      ],
      settingsCategory: 'my-service', // Optional, defaults to contextPath/name
    },
  },
  modules: [c8y()],
})

Important: manifest.settings[].defaultValue is required and must be a non-empty string. '' is rejected during manifest generation so invalid settings fail early during development/build.

Note on Encrypted Options: Keys prefixed with credentials. are stored encrypted by Cumulocity. See more details here.

Auto-injected role: When settings are defined, ROLE_OPTION_MANAGEMENT_READ is automatically added to requiredRoles so the microservice can read its own tenant options. You do not need to add it manually. If you have already added ROLE_OPTION_MANAGEMENT_READ, no duplicate is inserted.

Only the read role is auto-added. To write or delete tenant options at runtime you must add ROLE_OPTION_MANAGEMENT_ADMIN to requiredRoles yourself.

Released under the MIT License.