codifier 2.1.3 → 2.1.4

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/README.md CHANGED
@@ -71,10 +71,10 @@ This creates a virtuous cycle where knowledge from a developer's session informs
71
71
  │ CodifierMcp Server │
72
72
  │ ├── Transport: stdio | SSE │
73
73
  │ ├── Auth: Bearer token middleware │
74
- │ └── MCP Tools (5) │
74
+ │ └── MCP Tools (6) │
75
75
  │ fetch_context / update_memory │
76
- manage_projects / pack_repo
77
- │ query_data
76
+ delete_memory / manage_projects
77
+ pack_repo / query_data
78
78
  └──────┬──────────────────────────────────┘
79
79
 
80
80
  ┌────┴────────────────────────────────┐
@@ -261,15 +261,16 @@ Configure as a StreamableHTTP server at `https://codifier-mcp.fly.dev/mcp` with
261
261
 
262
262
  ## MCP Tools
263
263
 
264
- Codifier exposes 5 tools via the MCP protocol:
264
+ Codifier exposes 6 tools via the MCP protocol:
265
265
 
266
266
  | Tool | Description |
267
267
  |------|-------------|
268
268
  | `fetch_context` | Retrieve memories from the KB filtered by `project_id`, `memory_type` (rule, document, api_contract, learning, research_finding), and/or `tags` |
269
269
  | `update_memory` | Create or update a memory within the active project scope |
270
+ | `delete_memory` | Delete a memory by `id` and `project_id` |
270
271
  | `manage_projects` | Create, list, or switch the active project; all subsequent calls are scoped to it |
271
272
  | `pack_repo` | Condense a local or remote repository via RepoMix and store it as a versioned snapshot in the `repositories` table |
272
- | `query_data` | Execute operations against Athena: `list-tables` (schema discovery), `describe-tables` (column metadata), `execute-query` (SELECT only). Accepts optional `database` parameter to override the `ATHENA_DATABASE` env var per call. |
273
+ | `query_data` | Execute operations against Athena: `list-tables` (schema discovery), `describe-tables` (column metadata), `execute-query` (SELECT and WITH/CTE queries permitted). Accepts optional `database` parameter to override the `ATHENA_DATABASE` env var per call. |
273
274
 
274
275
  ### Memory Types
275
276
 
@@ -289,7 +290,7 @@ Skills are client-side, model-agnostic Agent workflows — markdown instruction
289
290
 
290
291
  After running `npx codifier init`, Skills live in `.codifier/skills/` in your project. Slash commands in `.claude/commands/` (or the equivalent for your client) activate each Skill.
291
292
 
292
- `skills/shared/codifier-tools.md` is a reference document covering all 5 MCP tools, their parameters, and usage patterns. Every Skill references it.
293
+ `skills/shared/codifier-tools.md` is a reference document covering all 6 MCP tools, their parameters, and usage patterns. Every Skill references it.
293
294
 
294
295
  ### Memory Skills (All Roles)
295
296
 
@@ -405,11 +406,12 @@ codifierMcp/
405
406
  │ │ ├── supabase-datastore.ts # Supabase implementation (default)
406
407
  │ │ └── atlassian-datastore.ts # Confluence implementation (legacy)
407
408
  │ ├── mcp/
408
- │ │ ├── server.ts # Registers exactly 5 tools
409
+ │ │ ├── server.ts # Registers exactly 6 tools
409
410
  │ │ ├── schemas.ts # Zod schemas for tool parameters
410
- │ │ └── tools/ # 5 tool implementations
411
+ │ │ └── tools/ # 6 tool implementations
411
412
  │ │ ├── fetch-context.ts
412
413
  │ │ ├── update-memory.ts
414
+ │ │ ├── delete-memory.ts
413
415
  │ │ ├── manage-projects.ts
414
416
  │ │ ├── pack-repo.ts
415
417
  │ │ └── query-data.ts
@@ -509,7 +511,7 @@ The original v2.0 design used a server-side `PlaybookRunner` state machine with
509
511
 
510
512
  1. **Eliminating round-trips**: Each playbook step required an MCP call. Skills let the LLM manage workflow state in its context window — zero extra tool calls for step transitions.
511
513
  2. **Model agnosticism**: Skill markdown files work with any LLM client. The YAML playbook format tied generation to Codifier's server-side prompt assembly.
512
- 3. **Simplified server**: 5 stateless tools are easier to reason about, test, and scale. The Fly.io deployment runs always-on (`min_machines_running = 1`, `auto_stop_machines = false`) — no cold-start delay for clients.
514
+ 3. **Simplified server**: 6 stateless tools are easier to reason about, test, and scale. The Fly.io deployment runs always-on (`min_machines_running = 1`, `auto_stop_machines = false`) — no cold-start delay for clients.
513
515
 
514
516
  ---
515
517
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codifier",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "MCP server for institutional memory management",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  # Codifier MCP Tools Reference
2
2
 
3
- This document describes all 5 MCP tools exposed by the Codifier server. Reference this when executing any Codifier skill.
3
+ This document describes all 6 MCP tools exposed by the Codifier server. Reference this when executing any Codifier skill.
4
4
 
5
5
  ---
6
6
 
@@ -53,7 +53,25 @@ Create a new memory or update an existing one in the shared knowledge base.
53
53
 
54
54
  ---
55
55
 
56
- ## 3. `manage_projects`
56
+ ## 3. `delete_memory`
57
+
58
+ Delete a memory from the shared knowledge base by its ID.
59
+
60
+ **Parameters:**
61
+ | Parameter | Type | Required | Description |
62
+ |-----------|------|----------|-------------|
63
+ | `id` | string (UUID) | ✓ | UUID of the memory to delete |
64
+ | `project_id` | string (UUID) | ✓ | Project scope (must match the memory's project) |
65
+
66
+ **Returns:** Confirmation with the deleted memory's `id` and `title`.
67
+
68
+ **Usage patterns:**
69
+ - Delete a stale learning: `{ id: "<memory-uuid>", project_id: "<project-uuid>" }`
70
+ - Clean up duplicates: fetch with `fetch_context`, identify duplicates, delete extras
71
+
72
+ ---
73
+
74
+ ## 4. `manage_projects`
57
75
 
58
76
  Create, list, or switch the active project.
59
77
 
@@ -77,7 +95,7 @@ Create, list, or switch the active project.
77
95
 
78
96
  ---
79
97
 
80
- ## 4. `pack_repo`
98
+ ## 5. `pack_repo`
81
99
 
82
100
  Condense a code repository into a versioned text snapshot using RepoMix. The snapshot is stored in the `repositories` table and can be retrieved for context.
83
101
 
@@ -98,7 +116,7 @@ Condense a code repository into a versioned text snapshot using RepoMix. The sna
98
116
 
99
117
  ---
100
118
 
101
- ## 5. `query_data`
119
+ ## 6. `query_data`
102
120
 
103
121
  Discover schemas and execute SELECT queries against an AWS Athena data warehouse.
104
122
 
@@ -120,7 +138,7 @@ Discover schemas and execute SELECT queries against an AWS Athena data warehouse
120
138
  - Get schema for selected tables: `{ operation: "describe-tables", project_id, table_names: ["events", "users"] }`
121
139
  - Execute a query: `{ operation: "execute-query", project_id, query: "SELECT user_id, COUNT(*) FROM events GROUP BY 1 LIMIT 100" }`
122
140
 
123
- **Constraints:** Only SELECT statements are permitted. DDL and DML are rejected.
141
+ **Constraints:** Only SELECT and WITH/CTE statements are permitted. DDL and DML are rejected.
124
142
 
125
143
  ---
126
144