diff --git a/src/payload.config.ts b/src/payload.config.ts index e0cdf043..75fa2d0d 100644 --- a/src/payload.config.ts +++ b/src/payload.config.ts @@ -508,6 +508,22 @@ export default buildConfig({ // storage-adapter-placeholder mcpPlugin({ collections: mcpCollections, + // Server-side guidance shown to MCP clients: this endpoint is read-only + // (keys carry only the `find` capability), so it is a reference surface + // for current production state, never a write path. + mcp: { + serverOptions: { + serverInfo: { name: "Polaris Task Force (production)", version: "1.0.0" }, + instructions: [ + "Polaris Task Force production data, read-only.", + "Every collection is exposed as a find tool (and find for globals).", + "These tools only read: the API key has the find capability only, so mutations are impossible.", + "Use them to look up current production state for reference (tickets, users, structures, market listings, and so on) rather than deriving it from source.", + "Pass Payload `where` clauses as JSON strings; limit is capped at 100.", + "Writes and schema changes go through the normal channels (server actions, Payload migrations), never this server.", + ].join("\n"), + }, + }, // MCP API keys let a client act as their user, so issuing them is a // superuser-tier operation: `system:admin-access` passes for dynamic // superusers (hasPermission bypass) and for roles explicitly holding it.