15 min read

Version History

  • 5 (2026-08-20) - Added the optional skills array on /meta, letting a module teach Mindfront a written procedure it loads only when the work calls for it. Backwards compatible.
  • 4 (2026-05-24) - Added the /events endpoint and the servesEvents field on /meta, letting a module emit a stream of business events that Mindfront drains on a poll. Backwards compatible.
  • 3 (2026-02-09) - Added optional pictogram and typicalHumanProcessTimeInMinutes fields to action schema. Added optional tldr and attachment_urls fields to action success responses. Backwards compatible.
  • 2 (2025-07-22) - Removed output schema requirement. Backwards compatible with V1.
  • 1 (2024-10-16) - Initial release.

Overview

Mindfront Fiber (formerly the Module Service Protocol) connects your services to Mindfront over HTTP. The protocol is free to use, with no restrictions or proprietary software required. Fiber is included with every Mindfront deployment.

Your service remains entirely your own IP and is completely independent of Mindfront. Mindfront never needs to view, introspect, or have access to your code or logic.

Protocol Philosophy

  • This is an RPC-style protocol over HTTP. HTTP is used only as a transport layer.
  • The outcome of an operation is determined exclusively by the status field within the JSON response body.
  • Your service should return an HTTP 200 OK for all protocol-level responses, including logical errors (failure, invalidInput). A non-200 status code (like 404 or 500) should only be used for transport-level errors where a JSON response body cannot be formed.

High-level Fiber overview

Mindfront Fiber · v5

PLATFORMYOUR MODULE SERVICEMindfront/metaREQUIRED/action/*OPTIONAL/data/*OPTIONAL/eventsOPTIONALYOUR SYSTEMSYour data & servicesREADSCALLSFETCHESDRAINSREACHESFEEDS
Only /meta is required; actions, data sources, skills and events are optional

Fiber Protocol Sequence

The exchange

MindfrontYour module01REGISTRATIONGET /meta200: WHAT THIS MODULE CAN DO02ACTION: OPTIONALPOST /action/yourAction200: JSON RESULT03EVENT DRAIN: OPTIONALGET /events200: QUEUED EVENTS, QUEUE CLEARED
Mindfront polls /meta and calls your action routes
Base URL

You may choose any base URL for your service. We highly encourage using a direct WireGuard connection for security. Alternatively, use HTTPS with authentication via custom headers.


Meta Endpoint

A GET request to /meta must return a JSON object that declares the module’s capabilities. Mindfront polls this endpoint approximately every 5 seconds to detect changes in real-time.

Response Schema
{
  "protocolVersion": 5,
  "moduleVersion": "x.y.z",
  "moduleName": "string",
  "description": "string",
  "actions": [ /* Array of Action Schema objects */ ],
  "data": [ /* Array of Data Source Schema objects */ ],
  "skills": [ /* Array of Skill Schema objects */ ],
  "servesEvents": false
}
FieldDescription
protocolVersionThe Fiber version. Must be 5. Mindfront still accepts 1 through 4.
moduleVersionThe semantic version of your module. Parsed as SemVer; an unparseable value falls back to a default of 1.0.0.
moduleNameA unique, human-readable name for your module.
descriptionA brief explanation of the module’s purpose.
actions(Optional) An array of action objects. Can be omitted or be an empty array ([]).
data(Optional) An array of data source objects: data sets Mindfront can read for reports and analysis. See Data Sources. Can be omitted or be an empty array ([]).
skills(Optional) An array of skill objects: written procedures Mindfront loads on demand. Can be omitted or be an empty array ([]).
servesEvents(Optional) true if this module exposes a /events endpoint. Defaults to false. When true, Mindfront polls /events on a fixed cadence and drains queued business events.

Note: Your /meta handler must respond within 5 seconds or Mindfront marks the module degraded. The handler is polled every 5 seconds and a fresh catalogue is rebuilt whenever the response changes.

Action Schema

Each object in the actions array is defined by this schema:

FieldDescription
nameUnique identifier for the action (e.g., createOrder). Must match ^[a-zA-Z0-9_]+$.
descriptionA clear explanation of what the action does, for AI consumption.
routeThe API endpoint for this action (e.g., /action/createOrder).
riskLevelThe required approval workflow. Must be one of: "safe", "machineApprovalRequired", "humanApprovalRequired", or "forbidden".
inputA JSON Schema object defining the parameters for this action.
pictogram(Optional) A Carbon Design System pictogram name (e.g., "user-profile", "cloud-upload"). Reserved for future UI use, current Mindfront versions accept the field but render a standard connector icon for every Fiber action.
typicalHumanProcessTimeInMinutes(Optional) A number representing the estimated time in minutes this work would take a human to perform manually. Used by Mindfront to communicate time savings.

Validation: Actions with a missing name, missing route, or an unrecognised riskLevel are silently dropped from the live catalogue. If your action isn’t appearing in Mindfront, check those three fields first.

Risk Level Evaluation

Each riskLevel maps to a fixed score: safe to 0.1, machineApprovalRequired to 0.5, humanApprovalRequired to 0.85, and forbidden to 1.0. Live policy determines the approval gate; the declaration alone does not guarantee a particular review path.

Skill Schema

An action is something Mindfront calls. A skill is something Mindfront reads, a written procedure your module owns, in the open Agent Skills format.

Mindfront holds every skill’s name and description in its prompt at all times, and loads the body only when it commits to work that skill covers. Put the whole procedure in the body. It costs nothing until it is needed, so it can carry detail an action description never could.

If you already keep skills as SKILL.md folders, the mapping is direct. The frontmatter fields carry the same names, the Markdown body becomes body, and the files under scripts/, references/, and assets/ become resources. Mindfront does not read the allowed-tools frontmatter field. See permissions below.

Each object in the skills array:

FieldRequiredDescription
nameyesIdentifier of 1 to 64 characters, using lowercase letters, digits, and hyphens only. It may not start or end with a hyphen, and may not hold two hyphens in a row. It also may not contain anthropic or claude. See below.
descriptionyesWhat the skill does and when to use it, up to 1024 characters, with no XML tags. Mindfront reads this to decide whether to load the skill. This is the only part that costs prompt space on every turn.
bodyyesThe procedure itself, as Markdown, up to 64,000 characters. Mindfront loads it verbatim on activation.
resourcesnoText files bundled with the skill. See below.
licensenoReserved. Mindfront accepts and stores the field but does not currently surface it.
compatibilitynoWhat the skill needs from its environment, up to 500 characters. Mindfront surfaces this verbatim on activation and never enforces it. The sandbox has no network, so a skill that demands one fails when it runs, not when it loads.
metadatanoReserved string-to-string map. Mindfront accepts and stores it but does not currently surface it.

These are the Agent Skills field rules, with one Mindfront addition: a skill name may not contain anthropic or claude. Your module chooses these names and they reach the AI as callable identifiers, so Mindfront reserves them. Nothing else here departs from the open format.

Bundled files

resources carries text files that land in Mindfront’s sandbox when the skill activates. Reference them from your body by relative path.

"resources": [
  { "relativePath": "references/severity-classes.md", "content": "..." },
  { "relativePath": "scripts/tabulate.py", "content": "..." }
]

Mindfront writes them under .skills/<name>/ and tells the AI where they landed. It never reads them into the prompt: the AI opens one only when the procedure sends it there. content is text, so a binary has no representation here. The combined content of one skill’s files must stay under 1,000,000 characters.

Validation: Mindfront drops a skill from the catalogue for:

  • a malformed name
  • a description that is empty, over 1024 characters, or carrying an XML tag
  • a body that is empty or over 64,000 characters
  • a compatibility over 500 characters
  • bundled files over the combined ceiling

When two connected modules serve the same skill name, the first wins and Mindfront ignores the other.

Permissions

A skill cannot widen its own permissions. Mindfront decides what an activated skill may call, under the same approval policy that governs every action. The Agent Skills allowed-tools field is deliberately absent from this schema. A module declaring what it may run would be the module granting itself.

Writing a good skill

The Agent Skills specification owns the authoring guidance, and it is worth reading before you write one. The short version has three rules. Describe both what the skill does and when to use it. Keep the body focused and push detail into resources. Keep file references one level deep. Validate a skill folder before wiring it up with the reference tooling:

skills-ref validate ./my-skill

Action Endpoints

Request Headers from Mindfront

Mindfront sends the following headers with every POST request to your action endpoints:

HeaderExample ValueDescription
X-MindFront-Request-Id123e4567-...A unique UUIDv4 for this specific HTTP request. Useful for logging and tracing.
X-MindFront-Task-Ida1b2c3d4-...The unique ID of the job, conversation, or decision the action is running inside.
X-MindFront-User-Emailsalice@co.comEmail address of the human this action is running on behalf of. Omitted on autonomous runs (background decisions and reflections).
X-MindFront-User-Idsb2c3d4e5-...ID of the human this action is running on behalf of. Omitted on autonomous runs.
X-MindFront-User-NamesAlice JonesDisplay name of the human this action is running on behalf of. Omitted on autonomous runs.
X-MindFront-Timestamp1748102580Unix seconds when Mindfront dispatched the request.
X-MindFront-Module-Service-Protocol-Version5Protocol version of the request. Mindfront echoes the version your /meta declared.
X-MindFront-Server-VersionmainlineBuild identifier of the Mindfront server making the call.
Custom Headersmy-secret-tokenYour administrator can configure any number of custom headers (e.g., for an API key).

For backwards compatibility every header is emitted twice: once under X-MindFront-* (the canonical name above) and once under X-SynthGrid-* (legacy name from earlier protocol versions). New bridges should read the X-MindFront-* set; the legacy prefix will be sunset in a future release.

Calling an Action

  • Request: POST to the defined route with a JSON body generated against your input schema. Mindfront does not re-validate the body before sending. Your service is the authority on validation; return invalidInput for anything that fails your checks. The request times out after 100 seconds. Your action must respond within that window.
  • Response: An HTTP 200 OK with a JSON body indicating the outcome.

Success Response:

{
  "status": "success",
  "data": { /* A non-null JSON object representing the result of the action */ },
  "tldr": "A short one-line summary of what just happened.",
  "attachment_urls": [ "https://example.com/report.pdf" ]
}
  • tldr (Optional): A short, human-readable summary of the outcome (e.g., "Updated 3 contacts"). Used as the action’s success line in the Mindfront UI.
  • attachment_urls (Optional): An array of URLs Mindfront will fetch and ingest into its document store as file deliverables on the action’s outcome. Use this to return generated reports, exports, or any binary your action produced.

Error Response:

{
  "status": "failure" | "invalidInput",
  "error": { "message": "A clear, user-facing explanation of the error." }
}
  • invalidInput: Use when the input is schema-valid but fails a business logic check (e.g., an ID does not exist).
  • failure: Use for all other operational errors (e.g., a downstream service is unavailable).

Status values are compared case-insensitively, so "Success" and "SUCCESS" parse the same as "success".

Data Sources

A data source lets Mindfront read a data set from your system for reports and analysis: sales history, stock levels, open invoices. Where an action does one thing and returns a result, a data source returns a table or a list for Mindfront to analyse.

Declare each one in the data array of /meta:

FieldDescription
nameA human-readable name, such as "Sales History". Mindfront registers it as <moduleName>_<name>, lowercased, with other characters replaced by _ (for example salesserver_sales_history).
descriptionWhat the data contains, for AI consumption. Name the columns or fields and their units.
routeThe endpoint that returns the data (for example /data/salesHistory).
inputA JSON Schema object for the parameters, such as a date range. Mindfront adds it to the description so the code reading the source knows what to pass.

Validation: Data sources with a missing name or route are dropped from the live catalogue.

"data": [
  {
    "name": "Sales History",
    "description": "One row per invoice line: date, customer, product, quantity, net amount in ZAR.",
    "route": "/data/salesHistory",
    "input": {
      "type": "object",
      "properties": {
        "from": { "type": "string", "format": "date" },
        "to": { "type": "string", "format": "date" }
      },
      "required": ["from", "to"]
    }
  }
]

Fetching a data source

  • Request: POST {base_url}{route} with the parameters as a JSON body, exactly as Mindfront authored them. Mindfront sends your configured authentication headers and Accept: text/csv, application/jsonl, application/json. Data source requests do not carry the X-Mindfront-* request headers that actions receive.
  • Response: An HTTP 200 OK whose body is the data. It is not wrapped in the action response envelope. The Content-Type sets the format: application/jsonl is read as JSON Lines, application/json as JSON, and anything else, or no Content-Type, as CSV.
  • Errors: Any non-2xx status fails the fetch. Mindfront reports the status with the first 800 characters of the response body.
  • Time limit: Respond within 100 seconds.
  • Freshness: Mindfront fetches the source every time it reads it, so your service is always the authority on current data.
date,customer,product,quantity,net_amount_zar
2026-10-01,Acme Glass,Float 4mm,120,18450.00
2026-10-01,Northline Builders,Laminated 6.38mm,40,22900.00

How Mindfront uses data sources

Mindfront’s analysis and reporting code runs in a sandbox and reads data sources by name. A data source carries the permissions of the connection that provides it. Mindfront checks them each time the data is read, so changing the connection’s permissions revokes access straight away.

Events Endpoint

A module that sets "servesEvents": true in /meta must expose a GET /events endpoint. Mindfront polls and drains this endpoint. The module owns the cursor. Delivery is at most once; events can be lost.

  • Request: GET /events (no body, no query parameters).
  • Success Response: An HTTP 200 OK with Content-Type: application/json and a body that is a JSON array of event objects. Return [] when nothing new has arrived. Order events by time ascending.
  • Side-effect: Once you have written the response, treat those events as delivered. They must not appear in a subsequent /events call. If Mindfront crashes between receiving your response and persisting the events, those events are lost. This is an accepted at-most-once tradeoff in exchange for a stateless client.

Event Schema

Each entry in the array:

{
  "id": "ev-00012345",
  "time": "2026-05-24T09:14:22.123Z",
  "kind": "DailyVisit",
  "headline": "Acme. Dave Patel",
  "pictogram": "user-multiple",
  "groupKey": "company:12345",
  "externalUrl": "https://your-app.example.com/visits/DV-2526-0042",
  "data": { /* arbitrary JSON, your domain shape */ }
}
FieldRequiredDescription
idyesOpaque identifier, unique within the module. Any format: ULID, GUID, "table:autoid". The protocol is drain-on-read, so Mindfront never uses this as a cursor or a dedup key. Emit each event only once.
timeyesISO-8601 UTC. When the underlying event actually happened in the source system (e.g., the row’s createdAt), not when you emitted it. Used as the ordering key in the Mindfront inbox.
kindyesStable category label: the same string for every event of this type (e.g., "DailyVisit", "PurchaseIndent", "SalesOrder"). Free vocabulary, human-readable, no namespacing.
headlineyesInstance-specific one-line summary, short enough for an inbox row.
pictogramyesCarbon Design System pictogram name. Reserved for future UI use, current Mindfront versions accept the field but do not yet render it. Use "information" if you have no opinion.
groupKeyyesThread/stacking key. Events sharing a groupKey collapse to one row in the Mindfront inbox. Pick the entity the human would think of as “the same thing being updated”: typically a company id, a deal id, an order id. If the event has no natural sibling, set groupKey equal to id so it sits on its own. Not a dedup key: two events with the same groupKey are both real events, just related.
externalUrlnoFull URL to view this event in your source system. Omit if you have no addressable view.
datayesArbitrary JSON: your domain shape. Mindfront surfaces it verbatim; no schema is enforced.

Reducing DB load

A common implementation pattern: run a background timer (e.g., every 60 seconds) that queries your database for new rows since the last cursor, builds events, and appends them to an in-memory queue. GET /events then drains the queue without touching the database. This gives a fixed upper bound on database load, independent of how often Mindfront polls.


Complete Example

This Python script implements /meta and one action.

#!/usr/bin/env python3
import json
from http.server import HTTPServer, BaseHTTPRequestHandler

METADATA = {
    "protocolVersion": 5,
    "moduleVersion": "1.0.1",
    "moduleName": "SimpleCRM",
    "description": "A basic CRM with actions for customers.",
    "actions": [{
        "name": "getCustomer", "description": "Retrieves details for a single customer by ID.",
        "route": "/action/getCustomer", "riskLevel": "safe",
        "pictogram": "user-profile",
        "typicalHumanProcessTimeInMinutes": 2,
        "input": {
            "type": "object", "properties": {"customerId": {"type": "string"}}, "required": ["customerId"]
        }
    }]
}

# Dummy in-memory data store
CUSTOMERS = { "CUST-001": {"name": "Alice Corp", "status": "active"}, "CUST-002": {"name": "Bob Inc", "status": "inactive"} }

class Handler(BaseHTTPRequestHandler):
    def send_json(self, data, status_code=200):
        self.send_response(status_code)
        self.send_header("Content-type", "application/json")
        self.end_headers()
        self.wfile.write(json.dumps(data).encode())

    def do_GET(self):
        if self.path == "/meta": self.send_json(METADATA)
        else: self.send_error(404)

    def do_POST(self):
        content_length = int(self.headers.get('Content-Length', 0))
        input_data = json.loads(self.rfile.read(content_length))

        if self.path == "/action/getCustomer":
            customer_id = input_data.get("customerId")
            if customer_id in CUSTOMERS:
                self.send_json({
                    "status": "success",
                    "data": {"id": customer_id, **CUSTOMERS[customer_id]},
                    "tldr": f"Loaded {CUSTOMERS[customer_id]['name']}"
                })
            else:
                self.send_json({"status": "invalidInput", "error": {"message": f"Customer ID '{customer_id}' not found."}})
        else:
            self.send_error(404)

if __name__ == "__main__":
    HTTPServer(("", 8080), Handler).serve_forever()

Best Practices & FAQs

Data Handling

  • Return Meaningful Data: An action’s data payload should always contain the result of the operation (e.g., the full record that was updated). This provides confirmation and enables action chaining.
  • Handling null vs. Missing Keys: Your service can assign different semantic meaning to a key being absent versus a key being present with a null value (e.g., null could mean “explicitly unset this optional field”).
  • Payload Sizes: Keep JSON data payloads to a reasonable size. Return large file outputs via attachment_urls. Mindfront fetches each URL and ingests it into the document store.

Security & Networking

  • Authentication: The recommended method is a direct WireGuard connection. For other setups, use custom headers to pass API keys or tokens; your administrator will configure these in Mindfront.
  • Idempotency: Mindfront does not retry action POSTs. Log X-MindFront-Request-Id to trace requests. Use a stable business key to prevent duplicate operations across separate calls.

Development Lifecycle

  • Environments: Manage dev/staging/prod by running separate instances of your Fiber service and having your Mindfront administrator point each environment to the appropriate base URL.
  • Updating: Simply deploy your new service code and restart it. Mindfront will detect changes via the /meta poll within seconds. The moduleVersion is for display only and does not control updates.

Common Questions

  • How do I enrich the UI for parameters? Use standard JSON Schema keywords in your input schema. Try to avoid nesting, etc.
  • What if my action is slow? The user will see a “processing” state in the Mindfront UI for the duration of the request (up to the 100s timeout). Design your actions to be as fast as possible. For long-running reports, consider an action that triggers the report and another that retrieves it by ID.
  • My team follows a written procedure. Can I give it to Mindfront? Yes. That is what skills on /meta is for. Ship the procedure as a skill body rather than padding an action description. Mindfront keeps the one-line description in its prompt and reads the full procedure only when the work calls for it. A skill can therefore be as long as the real procedure is.
  • Can my service push events into Mindfront? Yes. Set "servesEvents": true in /meta and expose a GET /events endpoint. See the Events Endpoint section. Mindfront polls and drains the endpoint; each event surfaces in the inbox as a row grouped by groupKey.
  • Can my service start jobs in Mindfront? Not directly. Emit a Fiber event with the relevant kind. A matching loop determines whether to evaluate the event, start a job, or suppress it.
  • Can my service receive events from Mindfront? Indirectly. An administrator can configure Mindfront to call one of your actions in response to a business event (for example, “when an invoice is approved, call the postInvoice action”).