@graphite-atlas/mcp-server 1.3.1 → 1.4.1
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/prompts.d.ts.map +1 -1
- package/dist/prompts.js +97 -0
- package/dist/prompts.js.map +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.js.map +1 -1
- package/package.json +1 -1
package/dist/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;
|
|
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,93 @@ 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 in order — do NOT skip ahead:
|
|
90
|
+
|
|
91
|
+
1. LIST ATLASES — Call \`list_atlases\` to find all my atlases. Present them as a numbered list with name and ID. Do NOT profile or query any atlases yet.
|
|
92
|
+
|
|
93
|
+
2. ASK WHICH ATLASES — Ask me which atlases I want to include in the setup. Options: pick specific ones by number, or all of them. Wait for my answer before proceeding.
|
|
94
|
+
|
|
95
|
+
3. PROFILE SELECTED ATLASES ONLY — For each atlas I selected, run these queries with \`query_cypher\`:
|
|
96
|
+
|
|
97
|
+
Stats:
|
|
98
|
+
\`\`\`cypher
|
|
99
|
+
MATCH (p:Point {atlasId: $atlasId}) WHERE p.deletedAt IS NULL
|
|
100
|
+
RETURN p.type as type, count(p) as count ORDER BY count DESC
|
|
101
|
+
\`\`\`
|
|
102
|
+
|
|
103
|
+
Key anchors:
|
|
104
|
+
\`\`\`cypher
|
|
105
|
+
MATCH (p:Point {atlasId: $atlasId}) WHERE p.deletedAt IS NULL
|
|
106
|
+
AND p.type IN ['Process', 'Organization', 'Group']
|
|
107
|
+
RETURN p.type as type, p.name as name ORDER BY p.type, p.name
|
|
108
|
+
\`\`\`
|
|
109
|
+
|
|
110
|
+
4. ASK THE COMPANY NAME — Ask the user what company name to use in the snippet.
|
|
111
|
+
|
|
112
|
+
5. 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.
|
|
113
|
+
|
|
114
|
+
6. GENERATE THE CLAUDE.MD SNIPPET — Fill in this template with real data from the selected atlases:
|
|
115
|
+
|
|
116
|
+
\`\`\`markdown
|
|
117
|
+
## Atlas — Business Knowledge Layer
|
|
118
|
+
|
|
119
|
+
Atlas (MCP: graphite-atlas) contains {COMPANY}'s organizational
|
|
120
|
+
structure, processes, people, systems, and how they connect.
|
|
121
|
+
|
|
122
|
+
**Check Atlas first** when asked about:
|
|
123
|
+
- Who does what, who owns what, who reports to whom
|
|
124
|
+
- How a process works, what systems it uses, what it produces
|
|
125
|
+
- Writing any business document (SOPs, DD responses, briefing docs, audit materials)
|
|
126
|
+
- Onboarding/offboarding or assessing impact of changes
|
|
127
|
+
|
|
128
|
+
**Don't use Atlas** for general knowledge, pure coding tasks,
|
|
129
|
+
or when the user provides all context directly.
|
|
130
|
+
|
|
131
|
+
### Key Atlases
|
|
132
|
+
|
|
133
|
+
| Atlas | ID | Contains |
|
|
134
|
+
|-------|-----|----------|
|
|
135
|
+
| {name} | {id} | {X processes, Y people, Z systems — key anchor names} |
|
|
136
|
+
|
|
137
|
+
### Graph-Grounded Output
|
|
138
|
+
|
|
139
|
+
Every statement about {COMPANY}'s business MUST come from Atlas data.
|
|
140
|
+
Do not hallucinate org details, process steps, or team structures.
|
|
141
|
+
If data is missing, say so explicitly.
|
|
142
|
+
|
|
143
|
+
### Integration with Other Tools
|
|
144
|
+
|
|
145
|
+
Atlas provides CONTEXT (who, what, why). Other tools provide EXECUTION (how).
|
|
146
|
+
|
|
147
|
+
| Tool | What it does | How Atlas helps |
|
|
148
|
+
|------|-------------|-----------------|
|
|
149
|
+
| {auto-detected MCPs} | {capability} | {what Atlas context enables} |
|
|
150
|
+
|
|
151
|
+
### Document Generation
|
|
152
|
+
|
|
153
|
+
When creating business documents, query Atlas first:
|
|
154
|
+
1. Get the relevant process/team/system structure
|
|
155
|
+
2. Pull connected context (people, steps, systems, artifacts)
|
|
156
|
+
3. Format for the audience — same data, different projection
|
|
157
|
+
\`\`\`
|
|
158
|
+
|
|
159
|
+
7. PRESENT FOR REVIEW — Show the user the complete snippet. Let them edit the company name, atlas descriptions, and integration table.
|
|
160
|
+
|
|
161
|
+
8. 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.
|
|
162
|
+
|
|
163
|
+
Important:
|
|
164
|
+
- Only profile atlases the user selected — never query all atlases upfront
|
|
165
|
+
- Use real data from the atlas profiles, not placeholders
|
|
166
|
+
- If there are no other MCP servers, omit the "Integration with Other Tools" section entirely
|
|
167
|
+
- Keep the "Key Atlases" table concise — summarize with counts and 2-3 key anchor names per atlas`,
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
}
|
|
75
172
|
//# sourceMappingURL=prompts.js.map
|
package/dist/prompts.js.map
CHANGED
|
@@ -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,OAAO;QACb,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,iLAAiL;QACnL,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,qEAAqE;gBAClF,QAAQ,EAAE,IAAI;aACf;SACF;KACF;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,IAA6B;IAE7B,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC1C;Y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F,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGA8EoF;aAC3F;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/dist/tools/index.js
CHANGED
package/dist/tools/index.js.map
CHANGED
|
@@ -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,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC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