Skip to main content
Was this helpful?

Configuring an Agent in PrimeCal

Use this flow to prepare a secure PrimeCal MCP connection for one external MCP host using a manually-generated static API key.

If your AI assistant offers a Connect button and supports OAuth, see Connecting via OAuth instead — it creates and scopes an agent for you automatically, without a key to copy and paste.

Before You Start

  • Sign in as mayblate in a local/demo environment.
  • Open More -> AI Agents (MCP).

MCP is always available when PrimeCal is deployed and configured. You do not turn MCP on with a feature flag. Access is controlled only by agent profiles, API keys, and permission scope.

Step 1: Create an Agent Profile

  1. Click Create agent.
  2. Name it clearly, for example May.B.Late Chrome MCP.
  3. Add a short description with host and purpose.

Recommended naming pattern:

  • Agent name: <user/workspace> <host> <purpose>
  • Key label: <machine or browser>-<date>

PrimeCal AI agent list and create form

Step 2: Pick a Permission Group First

Start with the permission group selector above the detailed matrix.

  • Minimal: safest starting point for profile, context, calendar reads, and task reads.
  • All read-only: recommended default for exploration, support bots, and reporting assistants.
  • Operational read/write: for agents that must create tasks, create or update calendar events, create reservations, or trigger automation rules.
  • Full MCP admin: reserved for highly trusted internal use. This option is intentionally restricted.

Prefer the smallest group that matches the job. If you later need one-off edits, switch to Custom and tighten the exact actions and scoped resources yourself.

Step 3: Review the Prefilled Permission Matrix

After choosing a group, PrimeCal pre-selects the underlying MCP actions and the current scoped resources that belong to your account.

Typical safe starter setup for daily planning assistants:

  • permission group: All read-only
  • optional custom additions: tasks.create, tasks.update, calendar.events.create, calendar.events.update

Add automation triggers and destructive actions only when the workflow truly requires them.

PrimeCal scoped permission editor for AI agents

Step 4: Generate and Store an API Key

  1. Open the API keys section.
  2. Click Generate key.
  3. Copy the plaintext key immediately.
  4. Store it in your host secret store.

The key is shown once. If lost, revoke and create a new one.

PrimeCal agent API key creation panel

Step 5: Validate With a Safe MCP Call

After host connection, call a low-risk tool first:

  • primecal_profile_get
  • primecal_calendars_list

Then continue with read/write tools only after verification.

PrimeCal also provides a generated MCP configuration panel that you can copy into host setup screens.

When a preset is active, the generated configuration can include a human-readable permissionGroup annotation. MCP hosts still rely on the explicit action and scope list that PrimeCal enforces at runtime.

PrimeCal generated MCP configuration for the selected agent

May.B.Late Demo Expectations

In seeded environments, validation should show:

  • calendars named Work, Personal, Side projects
  • profile timezone set to Europe/Budapest
  • 24-hour time format (24h)

Profile UI reference:

PrimeCal profile page showing timezone, theme, and format settings used in MCP demos

Rotate and Revoke

  • Revoke unused keys immediately.
  • Keep one key per host instance.
  • Use separate agent profiles for browser vs desktop hosts.