foundationworks-mcp 0.1.1 → 0.1.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 +14 -10
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,13 @@ MCP server that gives Claude, Cursor, Windsurf, and other AI agents access to yo
|
|
|
18
18
|
|
|
19
19
|
**New here?** [Sign up at foundationworks.io](https://foundationworks.io)
|
|
20
20
|
|
|
21
|
-
### 2.
|
|
21
|
+
### 2. Install the package
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install -g foundationworks-mcp
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 3. Configure your AI tool
|
|
22
28
|
|
|
23
29
|
**Claude Desktop** (`~/.claude/config.json`):
|
|
24
30
|
|
|
@@ -26,8 +32,7 @@ MCP server that gives Claude, Cursor, Windsurf, and other AI agents access to yo
|
|
|
26
32
|
{
|
|
27
33
|
"mcpServers": {
|
|
28
34
|
"foundation": {
|
|
29
|
-
"command": "
|
|
30
|
-
"args": ["-y", "foundationworks-mcp"],
|
|
35
|
+
"command": "foundationworks-mcp",
|
|
31
36
|
"env": {
|
|
32
37
|
"FOUNDATION_TOKEN": "mcp_your_token_here"
|
|
33
38
|
}
|
|
@@ -42,8 +47,7 @@ MCP server that gives Claude, Cursor, Windsurf, and other AI agents access to yo
|
|
|
42
47
|
{
|
|
43
48
|
"mcpServers": {
|
|
44
49
|
"foundation": {
|
|
45
|
-
"command": "
|
|
46
|
-
"args": ["-y", "foundationworks-mcp"],
|
|
50
|
+
"command": "foundationworks-mcp",
|
|
47
51
|
"env": {
|
|
48
52
|
"FOUNDATION_TOKEN": "mcp_your_token_here"
|
|
49
53
|
}
|
|
@@ -57,8 +61,7 @@ MCP server that gives Claude, Cursor, Windsurf, and other AI agents access to yo
|
|
|
57
61
|
```json
|
|
58
62
|
{
|
|
59
63
|
"foundation": {
|
|
60
|
-
"command": "
|
|
61
|
-
"args": ["-y", "foundationworks-mcp"],
|
|
64
|
+
"command": "foundationworks-mcp",
|
|
62
65
|
"env": {
|
|
63
66
|
"FOUNDATION_TOKEN": "mcp_your_token_here"
|
|
64
67
|
}
|
|
@@ -72,8 +75,7 @@ MCP server that gives Claude, Cursor, Windsurf, and other AI agents access to yo
|
|
|
72
75
|
{
|
|
73
76
|
"context_servers": {
|
|
74
77
|
"foundation": {
|
|
75
|
-
"command": "
|
|
76
|
-
"args": ["-y", "foundationworks-mcp"],
|
|
78
|
+
"command": "foundationworks-mcp",
|
|
77
79
|
"env": {
|
|
78
80
|
"FOUNDATION_TOKEN": "mcp_your_token_here"
|
|
79
81
|
}
|
|
@@ -82,6 +84,8 @@ MCP server that gives Claude, Cursor, Windsurf, and other AI agents access to yo
|
|
|
82
84
|
}
|
|
83
85
|
```
|
|
84
86
|
|
|
87
|
+
> **Note:** You can also use `npx -y foundationworks-mcp` instead of installing globally, but this may cause connection timeouts in some editors due to slower startup.
|
|
88
|
+
|
|
85
89
|
### 3. Start building
|
|
86
90
|
|
|
87
91
|
Ask your AI: *"Check my PRD for the authentication requirements"*
|
|
@@ -119,7 +123,7 @@ AI: "I've noted that we're using JWT instead of sessions as specified.
|
|
|
119
123
|
| Variable | Required | Default | Description |
|
|
120
124
|
|----------|----------|---------|-------------|
|
|
121
125
|
| `FOUNDATION_TOKEN` | Yes | — | Your agent token from Foundation |
|
|
122
|
-
| `FOUNDATION_API_URL` | No | `https://
|
|
126
|
+
| `FOUNDATION_API_URL` | No | `https://api.foundationworks.io/api/v1/mcp` | API base URL |
|
|
123
127
|
|
|
124
128
|
## Why use this?
|
|
125
129
|
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
14
14
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
15
15
|
// Configuration
|
|
16
16
|
const FOUNDATION_TOKEN = process.env.FOUNDATION_TOKEN;
|
|
17
|
-
const FOUNDATION_API_URL = process.env.FOUNDATION_API_URL || "https://
|
|
17
|
+
const FOUNDATION_API_URL = process.env.FOUNDATION_API_URL || "https://api.foundationworks.io/api/v1/mcp";
|
|
18
18
|
if (!FOUNDATION_TOKEN) {
|
|
19
19
|
console.error("Error: FOUNDATION_TOKEN environment variable is required");
|
|
20
20
|
console.error("Get your token from Foundation Settings → Agent Tokens");
|