Skip to main content
Use this guide when Codex, Claude Code, or another coding agent is implementing a Fentaris project. The goal is to produce runnable code, leave secrets with the user, and verify the proxy before handoff.

Quick Start

Read the docs index first, then inspect the local project:
Prefer the high-level API for new code:
Run validation before handoff:

Implementation Rules

Use fentaris(...), mcp(...), stdio(...), streamableHttp(...), group(...), user(...), and policy(...) for new projects. Use class constructors only when an existing project already uses them or when a low-level integration requires them. Do not invent, print, or commit real secrets. Leave FENTARIS_AUTH_KEY, raw API keys, and upstream tokens for the user unless they explicitly request disposable local values. When a project needs secrets, write the TypeScript credential references and hand off exact fentaris auth or fentaris secrets commands. Keep authorization durable. Put stable access control in policy(...) and group declarations. Use middleware, hooks, and local operation handlers for runtime checks, logging, validation, and side effects after policy has allowed a capability.

API Decision Table

Handoff Checklist

Before returning the project, include:
  • files changed
  • commands run and their result
  • commands the user must run to provide secrets
  • MCP endpoint, usually http://localhost:4000/mcp
  • API key header, usually x-fentaris-api-key
  • expected allowed and denied test cases
Use this handoff shape: