@virsanghavi/axis-server 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp-server.mjs +46 -2
- package/package.json +1 -1
package/dist/mcp-server.mjs
CHANGED
|
@@ -1226,8 +1226,52 @@ async function ensureFileSystem() {
|
|
|
1226
1226
|
await fs4.mkdir(axisInstructions, { recursive: true }).catch(() => {
|
|
1227
1227
|
});
|
|
1228
1228
|
const defaults = [
|
|
1229
|
-
["context.md",
|
|
1230
|
-
|
|
1229
|
+
["context.md", `# Project Context
|
|
1230
|
+
|
|
1231
|
+
## Overview
|
|
1232
|
+
This project uses Axis \u2014 an open-source coordination layer for AI agents.
|
|
1233
|
+
Axis provides shared context, atomic file locks, a job board, and real-time
|
|
1234
|
+
activity feeds so that multiple agents (Cursor, Claude, Windsurf, Codex, etc.)
|
|
1235
|
+
can work on the same codebase without conflicts.
|
|
1236
|
+
|
|
1237
|
+
## Architecture
|
|
1238
|
+
- **MCP Server**: Exposes tools (locks, jobs, context, search) via the Model Context Protocol.
|
|
1239
|
+
- **Supabase Backend**: Postgres for state (locks, jobs, profiles); Realtime for live feeds.
|
|
1240
|
+
- **Frontend**: Next.js App Router + Tailwind CSS dashboard at useaxis.dev.
|
|
1241
|
+
- **npm Packages**: @virsanghavi/axis-server (runtime), @virsanghavi/axis-init (scaffolding).
|
|
1242
|
+
|
|
1243
|
+
## Core Features
|
|
1244
|
+
1. File Locking \u2014 atomic, cross-IDE locks with 30-min TTL.
|
|
1245
|
+
2. Job Board \u2014 post / claim / complete tasks with priorities and dependencies.
|
|
1246
|
+
3. Shared Context \u2014 live notepad visible to every agent in real time.
|
|
1247
|
+
4. RAG Search \u2014 vector search over the indexed codebase.
|
|
1248
|
+
5. Soul Files \u2014 context.md, conventions.md, activity.md define project identity.
|
|
1249
|
+
`],
|
|
1250
|
+
["conventions.md", `# Coding Conventions
|
|
1251
|
+
|
|
1252
|
+
## Language & Style
|
|
1253
|
+
- TypeScript everywhere (strict mode).
|
|
1254
|
+
- Tailwind CSS for styling; no raw CSS unless unavoidable.
|
|
1255
|
+
- Functional React components; prefer server components in Next.js App Router.
|
|
1256
|
+
|
|
1257
|
+
## Agent Behavioral Norms
|
|
1258
|
+
|
|
1259
|
+
### Plan Before Write
|
|
1260
|
+
Every non-trivial task must follow: post_job -> claim_next_job -> propose_file_access -> (edit) -> complete_job.
|
|
1261
|
+
Skip only for single-line typo fixes.
|
|
1262
|
+
|
|
1263
|
+
### Force-Unlock Policy
|
|
1264
|
+
force_unlock is a LAST RESORT. Before using it:
|
|
1265
|
+
1. Verify the lock is > 25 minutes old.
|
|
1266
|
+
2. Confirm the locking agent is unresponsive.
|
|
1267
|
+
3. Provide a specific reason string.
|
|
1268
|
+
Never casually unlock files \u2014 always try propose_file_access first.
|
|
1269
|
+
|
|
1270
|
+
### Proactive Tool Usage
|
|
1271
|
+
Agents must use Axis MCP tools by default \u2014 do not wait for the user to say "use Axis".
|
|
1272
|
+
On session start, call get_project_soul or read_context to load project state.
|
|
1273
|
+
After significant progress, call update_shared_context.
|
|
1274
|
+
`],
|
|
1231
1275
|
["activity.md", "# Activity Log\n\n"]
|
|
1232
1276
|
];
|
|
1233
1277
|
for (const [file, content] of defaults) {
|