@graphite-atlas/mcp-server 1.3.1 → 1.4.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;GAcnB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,GAAG,IAAI,CAOvF"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;GAqBnB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,GAAG,IAAI,CASvF"}
package/dist/prompts.js CHANGED
@@ -21,6 +21,12 @@ export const PROMPTS = [
21
21
  },
22
22
  ],
23
23
  },
24
+ {
25
+ name: 'setup',
26
+ title: 'Setup Atlas',
27
+ description: 'Onboarding flow that discovers your atlases, profiles their contents, detects other MCP servers, and generates a CLAUDE.md snippet so Atlas works as your business context layer.',
28
+ arguments: [],
29
+ },
24
30
  ];
25
31
  /**
26
32
  * Get prompt messages for a given prompt name and arguments.
@@ -30,6 +36,8 @@ export function getPromptMessages(name, args) {
30
36
  switch (name) {
31
37
  case 'mapit':
32
38
  return getMapitMessages(args?.atlas_id);
39
+ case 'setup':
40
+ return getSetupMessages();
33
41
  default:
34
42
  return null;
35
43
  }
@@ -72,4 +80,90 @@ Keep descriptions factual and specific. Put metadata (status, aliases, dates) in
72
80
  },
73
81
  ];
74
82
  }
83
+ function getSetupMessages() {
84
+ return [
85
+ {
86
+ role: 'user',
87
+ content: {
88
+ type: 'text',
89
+ text: `Set up Atlas as my business context layer for Claude Code. Follow these steps:
90
+
91
+ 1. DISCOVER ATLASES — Call \`list_atlases\` to find all my atlases.
92
+
93
+ 2. PROFILE EACH ATLAS — For each atlas, run these queries with \`query_cypher\`:
94
+
95
+ Stats:
96
+ \`\`\`cypher
97
+ MATCH (p:Point {atlasId: $atlasId}) WHERE p.deletedAt IS NULL
98
+ RETURN p.type as type, count(p) as count ORDER BY count DESC
99
+ \`\`\`
100
+
101
+ Key anchors:
102
+ \`\`\`cypher
103
+ MATCH (p:Point {atlasId: $atlasId}) WHERE p.deletedAt IS NULL
104
+ AND p.type IN ['Process', 'Organization', 'Group']
105
+ RETURN p.type as type, p.name as name ORDER BY p.type, p.name
106
+ \`\`\`
107
+
108
+ 3. DETECT OTHER MCP SERVERS — Check what other MCP servers are connected in this session. If others exist, generate an integration table showing how Atlas provides business context for each tool. If none, skip this section.
109
+
110
+ 4. ASK THE COMPANY NAME — Ask the user what company name to use in the snippet.
111
+
112
+ 5. GENERATE THE CLAUDE.MD SNIPPET — Fill in this template with real data from the discovery:
113
+
114
+ \`\`\`markdown
115
+ ## Atlas — Business Knowledge Layer
116
+
117
+ Atlas (MCP: graphite-atlas) contains {COMPANY}'s organizational
118
+ structure, processes, people, systems, and how they connect.
119
+
120
+ **Check Atlas first** when asked about:
121
+ - Who does what, who owns what, who reports to whom
122
+ - How a process works, what systems it uses, what it produces
123
+ - Writing any business document (SOPs, DD responses, briefing docs, audit materials)
124
+ - Onboarding/offboarding or assessing impact of changes
125
+
126
+ **Don't use Atlas** for general knowledge, pure coding tasks,
127
+ or when the user provides all context directly.
128
+
129
+ ### Key Atlases
130
+
131
+ | Atlas | ID | Contains |
132
+ |-------|-----|----------|
133
+ | {name} | {id} | {X processes, Y people, Z systems — key anchor names} |
134
+
135
+ ### Graph-Grounded Output
136
+
137
+ Every statement about {COMPANY}'s business MUST come from Atlas data.
138
+ Do not hallucinate org details, process steps, or team structures.
139
+ If data is missing, say so explicitly.
140
+
141
+ ### Integration with Other Tools
142
+
143
+ Atlas provides CONTEXT (who, what, why). Other tools provide EXECUTION (how).
144
+
145
+ | Tool | What it does | How Atlas helps |
146
+ |------|-------------|-----------------|
147
+ | {auto-detected MCPs} | {capability} | {what Atlas context enables} |
148
+
149
+ ### Document Generation
150
+
151
+ When creating business documents, query Atlas first:
152
+ 1. Get the relevant process/team/system structure
153
+ 2. Pull connected context (people, steps, systems, artifacts)
154
+ 3. Format for the audience — same data, different projection
155
+ \`\`\`
156
+
157
+ 6. PRESENT FOR REVIEW — Show the user the complete snippet. Let them edit the company name, atlas descriptions, and integration table.
158
+
159
+ 7. WRITE TO CLAUDE.MD — After the user approves, APPEND (do not overwrite) the snippet to the project's CLAUDE.md file. If no CLAUDE.md exists, create one.
160
+
161
+ Important:
162
+ - Use real data from the atlas profiles, not placeholders
163
+ - If there are no other MCP servers, omit the "Integration with Other Tools" section entirely
164
+ - Keep the "Key Atlases" table concise — summarize with counts and 2-3 key anchor names per atlas`,
165
+ },
166
+ },
167
+ ];
168
+ }
75
169
  //# sourceMappingURL=prompts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB;QACE,IAAI,EAAE,O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6B;IAE7B,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC1C,KAAK,OAAO;YACV,OAAO,gBAAgB,EAAE,CAAC;QAC5B;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAgB;IACxC,MAAM,YAAY,GAAG,OAAO;QAC1B,CAAC,CAAC,2BAA2B,OAAO,EAAE;QACtC,CAAC,CAAC,uFAAuF,CAAC;IAE5F,OAAO;QACL;YACE,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE;gBACP,IAAI,EAAE,MAAe;gBACrB,IAAI,EAAE;;EAEZ,YAAY;;;;;;;;;;;;;;;;;;;;;;iKAsBmJ;aAC1J;SACF;KACF,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB;IACvB,OAAO;QACL;YACE,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE;gBACP,IAAI,EAAE,MAAe;gBACrB,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGA2EoF;aAC3F;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -45,7 +45,7 @@ export function setupTools(client) {
45
45
  name: packageJson.name,
46
46
  version: packageJson.version,
47
47
  capabilities: ['tools', 'prompts'],
48
- prompts: ['mapit'],
48
+ prompts: ['mapit', 'setup'],
49
49
  });
50
50
  },
51
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EA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;SACb;QACD,KAAK,CAAC,OAAO;YACX,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC;gBAC3B,IAAI,EAAE,WAAW,CAAC,IAAI;gBACtB,OAAO,EAAE,WAAW,CAAC,OAAO;gBAC5B,YAAY,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;gBAClC,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;aAC5B,CAAC,CAAC;QACL,CAAC;KACF,CAAC;IAEF,OAAO;QACL,cAAc;QACd,GAAG,gBAAgB,CAAC,MAAM,CAAC;QAC3B,GAAG,gBAAgB,CAAC,MAAM,CAAC;QAC3B,GAAG,eAAe,CAAC,MAAM,CAAC;QAC1B,GAAG,eAAe,CAAC,MAAM,CAAC;QAC1B,GAAG,gBAAgB,CAAC,MAAM,CAAC;QAC3B,GAAG,oBAAoB,CAAC,MAAM,CAAC;QAC/B,GAAG,gBAAgB,CAAC,MAAM,CAAC;QAC3B,GAAG,qBAAqB,CAAC,MAAM,CAAC;QAChC,GAAG,oBAAoB,CAAC,MAAM,CAAC;QAC/B,GAAG,eAAe,CAAC,MAAM,CAAC;KAC3B,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphite-atlas/mcp-server",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Model Context Protocol server for Graphite Atlas",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",