Configs
БесплатноНе проверенAI coding agent configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + REST API + Dashboard.
Описание
AI coding agent configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + REST API + Dashboard.
README
Formerly
@hasna/configs. Same tool, renamed. The MCP server keeps theconfigsname aliased so existing fleet MCP configs keep working.
AI coding agent instruction & configuration manager — store, version, apply, and
share all your AI coding configs and instruction sources. CLI + MCP + HTTP API
(instructions-serve) + generated SDK + Dashboard.
Install
npm install -g @hasna/instructions
CLI Usage
instructions --help
instructions list # compact, paged summary
instructions list --verbose # expanded metadata, still paged
instructions list --json # full machine-readable records
instructions show <slug> # full metadata + content
instructions inspect <slug> # alias for show
instructions profile resolve
instructions profile apply --auto
instructions package-manager-scan --fail-on-findings .
instructions package-manager-scan --home --fail-on-findings .
Collection commands are compact by default to keep agent terminals and context
small. Human output is capped at 20 rows unless you pass --limit; use
--cursor to continue from the next page. Detail is explicit:
--verboseexpands list rows with descriptions, tags, and paths.--jsonpreserves full machine-readable records for automation.show/inspectandsnapshot showprint full config or snapshot content.
Package-Manager Secret Guard
instructions package-manager-scan blocks package-manager credential ingress without
printing credential values. It scans repo .npmrc files, home .npmrc, Bun
config, lockfiles, and shell profiles, then reports only path, line, rule,
surface, and tracked status.
Use it in CI or pre-commit hooks:
instructions package-manager-scan --fail-on-findings .
Use --home for local operator scans:
instructions package-manager-scan --home --fail-on-findings .
Safe .npmrc auth uses npm's environment reference, not a rendered literal:
@hasna:registry=https://registry.npmjs.org/
# Add the npm auth-token entry with an environment reference, not a literal value.
Bun release-age quarantine must stay enabled. Keep
minimumReleaseAgeExcludes narrowed to exact @hasna/<package> names only;
wildcards and third-party package names fail the guard.
MCP Server
instructions-mcp # or the aliased binary: configs-mcp
The MCP server identity is intentionally kept as configs so the existing
fleet MCP configuration keeps working; the fleet rename is a separate controlled
step. Agent-facing MCP tools follow the same gradual disclosure model.
list_configs and list_profiles return paged compact envelopes by default and
accept limit, cursor, and verbose. apply_config and apply_profile omit
previous_content and new_content unless verbose: true is passed. Use
get_config when full config content is needed.
HTTP mode (MCP)
instructions-mcp --http # http://127.0.0.1:8807/mcp
MCP_HTTP=1 instructions-mcp
Health: GET http://127.0.0.1:8807/health. MCP is also mounted on
instructions-serve at /mcp.
HTTP API server (instructions-serve)
instructions-serve
Surfaces:
GET /health,GET /ready,GET /version→{ status, version, mode }GET /openapi.json,GET /v1/openapi.json→ the OpenAPI 3.1 document the SDK is generated from./v1/*— versioned cloud API (configs, profiles, snapshots, stats)./api/*— the local dashboard/REST surface.
Cloud mode (self-hosted, Amendment A1 pure-remote)
When HASNA_INSTRUCTIONS_DATABASE_URL is set the /v1 API reads/writes the
shared cloud Postgres directly (no local sync/cache in the service) and every
/v1 request is authenticated with a @hasna/contracts API key
(x-api-key or Authorization: Bearer). Reads need instructions:read, writes
need instructions:write (an instructions:* key satisfies both).
# apply the schema (idempotent; never clobbers existing tables)
instructions-serve migrate
# mint a key with the SAME signing secret the server verifies with
contracts issue-key --app instructions --scopes 'instructions:*'
Env: HASNA_INSTRUCTIONS_DATABASE_URL (DSN) and
HASNA_INSTRUCTIONS_API_SIGNING_KEY (HMAC signing secret; HASNA_API_SIGNING_KEY
and API_KEY_SIGNING_SECRET are also accepted). Client apps use
INSTRUCTIONS_API_URL + INSTRUCTIONS_API_KEY — never a DSN.
SDK
@hasna/instructions-sdk ships a zero-dependency typed client. The versioned
InstructionsV1Client is generated from the serve OpenAPI document
(bun run generate:sdk).
Storage Modes
Every CLI command, MCP tool, and SDK method routes through a single ConfigStore
abstraction with two transports:
- local — on-box SQLite (
LocalConfigStore), fully first-class. Used when no API env vars are set. - api (self_hosted / cloud) — HTTP
/v1+ bearer key (CloudConfigStore). Activated by setting bothHASNA_INSTRUCTIONS_API_URLandHASNA_INSTRUCTIONS_API_KEY. Identical client code; only the URL/key differ, and the self_hosted/cloud distinction is enforced server-side by tenancy.
Clients never hold a database DSN. The raw Postgres connection is a server-only
concern (instructions-serve).
Data Directory
Local data is stored in ~/.hasna/configs/ (unchanged, for fleet continuity).
Session Instruction Rendering
instructions session plan and instructions session apply render
OpenIdentities and instruction sources into provider-native files for Claude,
Codex, Cursor, OpenCode, Codewith, Qwen, aicopilot, and Google Antigravity.
The old Google agent target is removed; Antigravity is the only Google coding
agent render target. Antigravity workspace rules are rendered to
.agents/rules/*.md; its current global rules and MCP files use Google's
legacy-named ~/.gemini/GEMINI.md and ~/.gemini/config/mcp_config.json
paths but remain owned by the antigravity target.
Qwen Code session rendering writes QWEN.md instructional context with
QWEN_HOME pointing at the rendered profile home. Known config sync also
tracks Qwen Code QWEN.md and settings.json files at ~/.qwen/... and
project QWEN.md / .qwen/settings.json, so native hook settings can be
managed without claiming session-rendered context is hard enforcement.
instructions session plan \
--tool codewith \
--profile account999 \
--identity-export ./instructions.json \
--source project:repo-rules=./CODEWITH.md \
--json
instructions session apply \
--tool codex \
--profile account999 \
--identity-export ./instructions.json
Accepted source layers are global, provider/tool, account, machine,
division, workspace, project/repo, path, identity/agent,
session, and local. Empty renders fail closed unless --allow-empty-sources
is passed. Apply writes generated manifests with file hashes, checks previous
manifests for drift, refuses unmanaged file conflicts unless --force is
passed, removes stale managed mirrors only when safe, and writes local snapshots
before mutating managed files.
instructions init and bun run seed also seed
global-agent-rules-standard, the managed global/system prompt source for
session renaming, task-scoped worktrees, PR-first landing, protected-branch
push safety, no brittle hardcoding when source-of-truth or reusable abstractions
exist, autonomous repair, Hasna CLI source-of-truth usage, conversation surface
routing, and unbudgeted Codewith goals unless a user asks for budgets.
They also seed dangerous-operation-guard-standard, the managed station01 guard
source for risky shell commands, edits, git operations, package installs, and
secret-adjacent access. The guard excludes Gemini CLI, requires Codewith/Codex
PreToolUse to hard-deny or inject context rather than ask for approval, uses
PermissionRequest for Codewith/Codex approvals, records that Qwen QWEN.md
is policy context only, and records native hook or wrapper/plugin fallback
expectations for Claude, Qwen, OpenCode, Cursor, and Antigravity.
Machine-aware Profiles
instructions init seeds two platform profiles:
linux-arm64forlinux-node-a/linux-node-bmacos-arm64formacos-node-a/macos-node-b
These profiles resolve machine variables like {{WORKSPACE_ROOT}},
{{BUN_BIN_DIR}}, {{BUN_PATH}}, and {{PATH_PREFIX}}, so synced configs can be
portable across Linux and macOS arm64 machines.
They also include project dashboard variables used by agent-managed project workflows:
{{PROJECT_DASHBOARD_DIR}}->.hasna/project{{PROJECT_DASHBOARD_RENDER_MANIFEST}}->.hasna/project/dashboard/render.json{{PROJECT_DASHBOARD_SNAPSHOTS_DIR}}->.hasna/project/dashboard/snapshots{{PROJECT_CHANNEL_PREFIX}}->iproj-
instructions init and bun run seed seed the
agent-managed-project-dashboard-standard reference. It documents the standard
.hasna/project layout, projects dashboard * commands, provider panel
commands, #iproj-* channel naming, durable todos/goal workflow, and the rule
that dashboards must show ids/statuses/evidence refs instead of raw private
documents or secrets.
License
Apache-2.0 -- see LICENSE
Установить Configs в Claude Desktop, Claude Code, Cursor
unyly install configsСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add configs -- npx -y @hasna/configsFAQ
Configs MCP бесплатный?
Да, Configs MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Configs?
Нет, Configs работает без API-ключей и переменных окружения.
Configs — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Configs в Claude Desktop, Claude Code или Cursor?
Открой Configs на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Configs with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
