mason-context 0.2.1 → 0.2.3
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 +7 -1
- package/dist/bin/mason-mcp.js +1 -1
- package/dist/bin/mason.js +2 -2
- package/dist/bin/mason.js.map +1 -1
- package/dist/src/cli.js +2 -2
- package/dist/src/cli.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Mason – the context builder for LLMs 👷
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/mason-context)
|
|
4
|
+
[](https://github.com/adrianczuczka/mason/actions/workflows/ci.yml)
|
|
5
|
+
[](https://www.npmjs.com/package/mason-context)
|
|
6
|
+
[](https://github.com/adrianczuczka/mason/blob/main/LICENSE)
|
|
7
|
+
[](https://github.com/adrianczuczka/mason/issues)
|
|
8
|
+
|
|
3
9
|
Mason gives LLMs a persistent map of your codebase so they stop exploring from scratch every session.
|
|
4
10
|
|
|
5
11
|
**The problem:** Every time an LLM starts a new conversation about your code, it greps, reads files, and pieces together the architecture — burning tokens on context it already understood yesterday. On a 164-file project, answering "what features does this app have?" requires reading 8+ files across multiple tool calls.
|
|
@@ -21,7 +27,7 @@ Same answer quality (0.9/1.0 on all tests, both paths). Reproduce: [bench/](benc
|
|
|
21
27
|
## Quick start
|
|
22
28
|
|
|
23
29
|
```bash
|
|
24
|
-
claude mcp add mason --scope user -- npx mason-context mcp
|
|
30
|
+
claude mcp add mason --scope user -- npx -p mason-context mason-mcp
|
|
25
31
|
```
|
|
26
32
|
|
|
27
33
|
Restart Claude Code, then ask: *"use mason to analyze this project and create a snapshot."*
|
package/dist/bin/mason-mcp.js
CHANGED
|
@@ -1235,7 +1235,7 @@ function createMcpServer() {
|
|
|
1235
1235
|
const server = new McpServer(
|
|
1236
1236
|
{
|
|
1237
1237
|
name: "mason",
|
|
1238
|
-
version: "0.2.
|
|
1238
|
+
version: "0.2.3"
|
|
1239
1239
|
},
|
|
1240
1240
|
{
|
|
1241
1241
|
instructions: "Mason is a context engineering tool. Always call get_snapshot before using Explore agents, Glob, or Grep to understand the codebase. The snapshot is a concept map that maps features and flows to their implementing files \u2014 it eliminates the need to search. This applies to ANY question about architecture, features, flows, how things work, cross-feature interactions, or bug investigation. Workflow: 1) Call get_snapshot first. 2) If no snapshot, call full_analysis and then save_snapshot to create one. 3) If the snapshot is stale, tell the user and offer to update it. 4) Use your native file reading tool to read files the snapshot points to. 5) Before modifying a file, call get_impact to check what else might be affected. 6) After making significant changes (new features, refactors, architecture changes), call save_snapshot to update the concept map."
|
package/dist/bin/mason.js
CHANGED
|
@@ -1786,7 +1786,7 @@ function createMcpServer() {
|
|
|
1786
1786
|
const server = new McpServer(
|
|
1787
1787
|
{
|
|
1788
1788
|
name: "mason",
|
|
1789
|
-
version: "0.2.
|
|
1789
|
+
version: "0.2.3"
|
|
1790
1790
|
},
|
|
1791
1791
|
{
|
|
1792
1792
|
instructions: "Mason is a context engineering tool. Always call get_snapshot before using Explore agents, Glob, or Grep to understand the codebase. The snapshot is a concept map that maps features and flows to their implementing files \u2014 it eliminates the need to search. This applies to ANY question about architecture, features, flows, how things work, cross-feature interactions, or bug investigation. Workflow: 1) Call get_snapshot first. 2) If no snapshot, call full_analysis and then save_snapshot to create one. 3) If the snapshot is stale, tell the user and offer to update it. 4) Use your native file reading tool to read files the snapshot points to. 5) Before modifying a file, call get_impact to check what else might be affected. 6) After making significant changes (new features, refactors, architecture changes), call save_snapshot to update the concept map."
|
|
@@ -1970,7 +1970,7 @@ function createCLI() {
|
|
|
1970
1970
|
const program2 = new Command();
|
|
1971
1971
|
program2.name("mason").description(
|
|
1972
1972
|
"Context engineering CLI & MCP server \u2014 generates intelligent CLAUDE.md files"
|
|
1973
|
-
).version("0.
|
|
1973
|
+
).version("0.2.3");
|
|
1974
1974
|
program2.command("setup").description("Register Mason as an MCP server with Claude Code").option("--scope <scope>", "Config scope: user or project", "user").action(async (opts) => {
|
|
1975
1975
|
const { execFile: execFile9 } = await import("child_process");
|
|
1976
1976
|
const { promisify: promisify9 } = await import("util");
|