@atlascompiler/mcp 1.0.2 → 1.0.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 +71 -31
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -24,7 +24,11 @@ Connects AI coding assistants, agents, and LLMs (Cursor, Claude Desktop, Windsur
|
|
|
24
24
|
|
|
25
25
|
## Quick Start
|
|
26
26
|
|
|
27
|
-
###
|
|
27
|
+
### Get your API key
|
|
28
|
+
|
|
29
|
+
Sign in to the [Atlas Dashboard](https://dashboard.atlas-compiler.com) to generate your free API key (`atlas_...`).
|
|
30
|
+
|
|
31
|
+
### Interactive setup wizard (Recommended)
|
|
28
32
|
|
|
29
33
|
Run the 1-click interactive setup wizard to validate your API key and automatically configure your desktop editors (Claude Desktop, Cursor, VS Code, Windsurf):
|
|
30
34
|
|
|
@@ -46,7 +50,7 @@ The wizard:
|
|
|
46
50
|
- Distinguishes standard clients (`mcpServers`) from VS Code workspace format (`servers`).
|
|
47
51
|
- Optionally installs the canonical Atlas Agent Skill for local or global agent discovery.
|
|
48
52
|
|
|
49
|
-
###
|
|
53
|
+
### Run Stdio server directly
|
|
50
54
|
|
|
51
55
|
Once configured via `init`, you can run the MCP server with zero flags or environment variables:
|
|
52
56
|
|
|
@@ -54,12 +58,17 @@ Once configured via `init`, you can run the MCP server with zero flags or enviro
|
|
|
54
58
|
npx -y @atlascompiler/mcp
|
|
55
59
|
```
|
|
56
60
|
|
|
57
|
-
###
|
|
61
|
+
### Headless & CI/CD environments
|
|
58
62
|
|
|
59
63
|
In automated pipelines, containerized environments, or ephemeral workers, supply credentials via the `ATLAS_API_KEY` environment variable:
|
|
60
64
|
|
|
61
65
|
```bash
|
|
66
|
+
# macOS / Linux
|
|
62
67
|
export ATLAS_API_KEY="atlas_your_api_key_here"
|
|
68
|
+
|
|
69
|
+
# Windows PowerShell
|
|
70
|
+
$env:ATLAS_API_KEY = "atlas_your_api_key_here"
|
|
71
|
+
|
|
63
72
|
npx -y @atlascompiler/mcp
|
|
64
73
|
```
|
|
65
74
|
|
|
@@ -114,22 +123,28 @@ curl -fsSL https://atlas-compiler.com/skill.md -o .agents/skills/atlas/SKILL.md
|
|
|
114
123
|
|
|
115
124
|
## Client Setup Configurations
|
|
116
125
|
|
|
117
|
-
|
|
126
|
+
You can configure your editor in two ways:
|
|
127
|
+
1. **Interactive Setup Wizard (Recommended)**: Run `npx -y @atlascompiler/mcp init` to store credentials securely in `~/.atlas/credentials.json` (POSIX `0600`). Editor config files remain clean with no tokens checked into git.
|
|
128
|
+
2. **Direct Manual Configuration**: Add the server block below with your `ATLAS_API_KEY` directly in your editor's MCP config file.
|
|
118
129
|
|
|
119
130
|
### Cursor IDE
|
|
120
131
|
|
|
121
|
-
Add the server to your Cursor MCP settings (`~/.cursor/mcp.json` for global, or `.cursor/mcp.json` in your repository
|
|
132
|
+
Add the server to your Cursor MCP settings (`~/.cursor/mcp.json` for global, or `.cursor/mcp.json` in your repository):
|
|
122
133
|
|
|
123
134
|
```json
|
|
124
135
|
{
|
|
125
136
|
"mcpServers": {
|
|
126
137
|
"atlas": {
|
|
127
138
|
"command": "npx",
|
|
128
|
-
"args": ["-y", "@atlascompiler/mcp"]
|
|
139
|
+
"args": ["-y", "@atlascompiler/mcp"],
|
|
140
|
+
"env": {
|
|
141
|
+
"ATLAS_API_KEY": "atlas_your_api_key_here"
|
|
142
|
+
}
|
|
129
143
|
}
|
|
130
144
|
}
|
|
131
145
|
}
|
|
132
146
|
```
|
|
147
|
+
*(If you already ran `atlas-mcp init`, the `"env"` block can be omitted.)*
|
|
133
148
|
|
|
134
149
|
### VS Code
|
|
135
150
|
|
|
@@ -140,7 +155,10 @@ Add the server to your project's `.vscode/mcp.json`:
|
|
|
140
155
|
"servers": {
|
|
141
156
|
"atlas": {
|
|
142
157
|
"command": "npx",
|
|
143
|
-
"args": ["-y", "@atlascompiler/mcp"]
|
|
158
|
+
"args": ["-y", "@atlascompiler/mcp"],
|
|
159
|
+
"env": {
|
|
160
|
+
"ATLAS_API_KEY": "atlas_your_api_key_here"
|
|
161
|
+
}
|
|
144
162
|
}
|
|
145
163
|
}
|
|
146
164
|
}
|
|
@@ -160,7 +178,10 @@ Add the server to your Claude Desktop configuration:
|
|
|
160
178
|
"mcpServers": {
|
|
161
179
|
"atlas": {
|
|
162
180
|
"command": "npx",
|
|
163
|
-
"args": ["-y", "@atlascompiler/mcp"]
|
|
181
|
+
"args": ["-y", "@atlascompiler/mcp"],
|
|
182
|
+
"env": {
|
|
183
|
+
"ATLAS_API_KEY": "atlas_your_api_key_here"
|
|
184
|
+
}
|
|
164
185
|
}
|
|
165
186
|
}
|
|
166
187
|
}
|
|
@@ -175,7 +196,10 @@ Add the server to `~/.codeium/windsurf/mcp_config.json`:
|
|
|
175
196
|
"mcpServers": {
|
|
176
197
|
"atlas": {
|
|
177
198
|
"command": "npx",
|
|
178
|
-
"args": ["-y", "@atlascompiler/mcp"]
|
|
199
|
+
"args": ["-y", "@atlascompiler/mcp"],
|
|
200
|
+
"env": {
|
|
201
|
+
"ATLAS_API_KEY": "atlas_your_api_key_here"
|
|
202
|
+
}
|
|
179
203
|
}
|
|
180
204
|
}
|
|
181
205
|
}
|
|
@@ -197,16 +221,27 @@ For remote agents or the official [MCP Inspector](https://github.com/modelcontex
|
|
|
197
221
|
|
|
198
222
|
## Available MCP Tools
|
|
199
223
|
|
|
200
|
-
|
|
224
|
+
Atlas exposes 5 focused tools for AI coding assistants and agent workflows:
|
|
225
|
+
|
|
226
|
+
| # | Tool | Description | Best For |
|
|
227
|
+
| :-: | :--- | :--- | :--- |
|
|
228
|
+
| **1** | [`atlas_compile`](#atlas_compile) | Deep 12-pass AST compilation into high-density Markdown | Complex docs, API references, tables, and code blocks |
|
|
229
|
+
| **2** | [`atlas_scrape`](#atlas_scrape) | Fast single-page content and link extraction | Articles, blog posts, news, and raw text |
|
|
230
|
+
| **3** | [`atlas_map`](#atlas_map) | Domain topology spider and sitemap explorer | Discovering reachable URLs without downloading page bodies |
|
|
231
|
+
| **4** | [`atlas_batch_compile`](#atlas_batch_compile) | Concurrent parallel compilation (up to 20 URLs) | Multi-page comparisons and batch data ingestion |
|
|
232
|
+
| **5** | [`atlas_crawl`](#atlas_crawl) | Bounded recursive website crawl with path glob filtering | Section-specific site crawls (e.g. `/docs/**`) |
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
### `atlas_compile`
|
|
201
237
|
Compile any web page into a structured, high-density markdown document optimized for LLM reasoning.
|
|
202
238
|
|
|
203
239
|
```ts
|
|
204
240
|
{
|
|
205
|
-
url: string;
|
|
206
|
-
format?: 'markdown' | 'semantic'; // 'semantic' includes
|
|
207
|
-
max_output_chars?: number;
|
|
208
|
-
|
|
209
|
-
force_fresh?: boolean; // Bypass CDN and cache layers (default: false)
|
|
241
|
+
url: string; // Required: Absolute HTTP/HTTPS URL
|
|
242
|
+
format?: 'markdown' | 'semantic' | 'markdown+links'; // 'semantic' includes AST graph; 'markdown+links' appends links
|
|
243
|
+
max_output_chars?: number; // Maximum characters to return in the tool response (default: 30000)
|
|
244
|
+
force_fresh?: boolean; // Bypass edge cache and force fresh compile from origin (default: false)
|
|
210
245
|
}
|
|
211
246
|
```
|
|
212
247
|
|
|
@@ -215,32 +250,32 @@ Compile any web page into a structured, high-density markdown document optimized
|
|
|
215
250
|
|
|
216
251
|
---
|
|
217
252
|
|
|
218
|
-
###
|
|
253
|
+
### `atlas_scrape`
|
|
219
254
|
Fast, lightweight single-page extraction when deep compilation isn't required.
|
|
220
255
|
|
|
221
256
|
```ts
|
|
222
257
|
{
|
|
223
258
|
url: string; // Required: Absolute HTTP/HTTPS URL
|
|
224
259
|
formats?: Array<'markdown' | 'links' | 'text'>; // Formats to extract (default: ['markdown'])
|
|
225
|
-
max_output_chars?: number; // Capping threshold (default:
|
|
226
|
-
timeout_ms?: number; // Maximum fetch timeout (default: 15000)
|
|
260
|
+
max_output_chars?: number; // Capping threshold (default: 30000)
|
|
261
|
+
timeout_ms?: number; // Maximum fetch timeout in milliseconds (default: 15000)
|
|
227
262
|
}
|
|
228
263
|
```
|
|
229
264
|
|
|
230
265
|
**Example Agent Invocation:**
|
|
231
|
-
> *"Scrape the main text and links from `https://
|
|
266
|
+
> *"Scrape the main text and links from `https://atlas-compiler.com`."*
|
|
232
267
|
|
|
233
268
|
---
|
|
234
269
|
|
|
235
|
-
###
|
|
270
|
+
### `atlas_map`
|
|
236
271
|
Discover site topology, sitemaps, and reachable URLs on a target domain without downloading page bodies.
|
|
237
272
|
|
|
238
273
|
```ts
|
|
239
274
|
{
|
|
240
|
-
url: string; // Required: Root URL or domain
|
|
275
|
+
url: string; // Required: Root URL or domain (e.g. 'https://docs.github.com')
|
|
241
276
|
limit?: number; // Maximum URLs to return (1-500, default: 100)
|
|
242
277
|
include_subdomains?: boolean; // Follow subdomains (default: false)
|
|
243
|
-
sitemap?: 'include' | '
|
|
278
|
+
sitemap?: 'include' | 'skip' | 'only'; // Sitemap inspection strategy (default: 'include')
|
|
244
279
|
}
|
|
245
280
|
```
|
|
246
281
|
|
|
@@ -249,13 +284,13 @@ Discover site topology, sitemaps, and reachable URLs on a target domain without
|
|
|
249
284
|
|
|
250
285
|
---
|
|
251
286
|
|
|
252
|
-
###
|
|
287
|
+
### `atlas_batch_compile`
|
|
253
288
|
Compile multiple pages in parallel (up to 20 URLs) with per-document success/failure aggregation.
|
|
254
289
|
|
|
255
290
|
```ts
|
|
256
291
|
{
|
|
257
292
|
urls: string[]; // Required: Array of 1 to 20 URLs
|
|
258
|
-
format?: 'markdown' | 'semantic';
|
|
293
|
+
format?: 'markdown' | 'semantic' | 'markdown+links'; // Content format (default: 'markdown')
|
|
259
294
|
max_output_chars_per_page?: number; // Character cap per document (default: 15000)
|
|
260
295
|
}
|
|
261
296
|
```
|
|
@@ -265,16 +300,16 @@ Compile multiple pages in parallel (up to 20 URLs) with per-document success/fai
|
|
|
265
300
|
|
|
266
301
|
---
|
|
267
302
|
|
|
268
|
-
###
|
|
303
|
+
### `atlas_crawl`
|
|
269
304
|
Bounded crawl of a website starting from a seed URL with link discovery, depth limits, and path filtering.
|
|
270
305
|
|
|
271
306
|
```ts
|
|
272
307
|
{
|
|
273
|
-
url: string;
|
|
274
|
-
max_pages?: number;
|
|
275
|
-
max_depth?: number;
|
|
276
|
-
include_paths?: string[];
|
|
277
|
-
exclude_paths?: string[];
|
|
308
|
+
url: string; // Required: Seed URL to begin crawling
|
|
309
|
+
max_pages?: number; // Maximum pages to process (1-50, default: 10)
|
|
310
|
+
max_depth?: number; // Maximum link hops (1-5, default: 2)
|
|
311
|
+
include_paths?: string[]; // Path glob patterns to restrict compilation (e.g. ['/docs/**', '/reference/**'])
|
|
312
|
+
exclude_paths?: string[]; // Path glob patterns to skip (e.g. ['/changelog/**', '/**/pricing'])
|
|
278
313
|
}
|
|
279
314
|
```
|
|
280
315
|
|
|
@@ -307,7 +342,12 @@ import { StdioServerTransport } from '@modelcontextprotocol/server';
|
|
|
307
342
|
|
|
308
343
|
const server = createAtlasMcpServer({
|
|
309
344
|
context: {
|
|
310
|
-
|
|
345
|
+
// Option A: Explicit manual API key
|
|
346
|
+
apiKey: 'atlas_your_api_key_here',
|
|
347
|
+
|
|
348
|
+
// Option B: Automatically loaded from process.env.ATLAS_API_KEY
|
|
349
|
+
// apiKey: process.env.ATLAS_API_KEY,
|
|
350
|
+
|
|
311
351
|
baseUrl: 'https://api.atlas-compiler.com',
|
|
312
352
|
},
|
|
313
353
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlascompiler/mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"mcpName": "com.atlas-compiler/atlas",
|
|
4
5
|
"description": "Official Model Context Protocol (MCP) server for Atlas - Deterministic Zero-LLM Web Compiler and Scraper for AI Agents",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "./dist/index.js",
|