@automanus/mcp-server 1.0.0 → 1.1.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.
- package/README.md +103 -0
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# @automanus/mcp-server
|
|
2
|
+
|
|
3
|
+
MCP server for AutoManus - Create AI sales agents via Claude, Cursor, and other AI tools.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### For Claude Desktop
|
|
8
|
+
|
|
9
|
+
Add to your Claude Desktop config file:
|
|
10
|
+
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
11
|
+
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"mcpServers": {
|
|
16
|
+
"automanus": {
|
|
17
|
+
"command": "npx",
|
|
18
|
+
"args": ["-y", "@automanus/mcp-server"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### For Cursor
|
|
25
|
+
|
|
26
|
+
Add to `~/.cursor/mcp.json`:
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"mcpServers": {
|
|
31
|
+
"automanus": {
|
|
32
|
+
"command": "npx",
|
|
33
|
+
"args": ["-y", "@automanus/mcp-server"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Authentication
|
|
40
|
+
|
|
41
|
+
No configuration required! Claude will ask for your email when creating an agent.
|
|
42
|
+
|
|
43
|
+
### Optional: Pre-configure email
|
|
44
|
+
|
|
45
|
+
If you want to skip the email prompt, add your email to the config:
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"mcpServers": {
|
|
50
|
+
"automanus": {
|
|
51
|
+
"command": "npx",
|
|
52
|
+
"args": ["-y", "@automanus/mcp-server"],
|
|
53
|
+
"env": {
|
|
54
|
+
"AUTOMANUS_EMAIL": "your-email@example.com"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Optional: API Key (For existing users)
|
|
62
|
+
|
|
63
|
+
With an API key, agents are created directly under your account:
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"mcpServers": {
|
|
68
|
+
"automanus": {
|
|
69
|
+
"command": "npx",
|
|
70
|
+
"args": ["-y", "@automanus/mcp-server"],
|
|
71
|
+
"env": {
|
|
72
|
+
"AUTOMANUS_API_KEY": "ak_your_api_key_here"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Get your API key from [automanus.io/dashboard](https://automanus.io/dashboard).
|
|
80
|
+
|
|
81
|
+
## Available Tools
|
|
82
|
+
|
|
83
|
+
### `create_sales_agent`
|
|
84
|
+
|
|
85
|
+
Create an AI sales agent for any company.
|
|
86
|
+
|
|
87
|
+
**Parameters:**
|
|
88
|
+
- `email` (optional): Your email address. Claude will ask if not provided.
|
|
89
|
+
- `company_name` (required): Name of the company
|
|
90
|
+
- `website_url` (optional): Company website URL for auto-populating knowledge base
|
|
91
|
+
|
|
92
|
+
**Example prompts:**
|
|
93
|
+
> Create an AI sales agent for Stripe
|
|
94
|
+
|
|
95
|
+
> Build a sales agent for my company TechStartup with website techstartup.com
|
|
96
|
+
|
|
97
|
+
## Documentation
|
|
98
|
+
|
|
99
|
+
Full documentation at [automanus.io/docs/mcp](https://automanus.io/docs/mcp)
|
|
100
|
+
|
|
101
|
+
## License
|
|
102
|
+
|
|
103
|
+
MIT
|
package/dist/index.js
CHANGED
|
@@ -17,10 +17,14 @@ const API_BASE_URL = 'https://automanus.io/api/v1';
|
|
|
17
17
|
const tools = [
|
|
18
18
|
{
|
|
19
19
|
name: 'create_sales_agent',
|
|
20
|
-
description: 'Create an AI sales agent for a business. Researches the website automatically and deploys to WhatsApp and Webchat.',
|
|
20
|
+
description: 'Create an AI sales agent for a business. Researches the website automatically and deploys to WhatsApp and Webchat. Ask the user for their email if not provided.',
|
|
21
21
|
inputSchema: {
|
|
22
22
|
type: 'object',
|
|
23
23
|
properties: {
|
|
24
|
+
email: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'User email address for account creation and receiving the agent claim link. Ask the user for this.',
|
|
27
|
+
},
|
|
24
28
|
company_name: {
|
|
25
29
|
type: 'string',
|
|
26
30
|
description: 'Business/company name',
|
|
@@ -99,11 +103,13 @@ function getHeaders() {
|
|
|
99
103
|
}
|
|
100
104
|
// Tool handlers
|
|
101
105
|
async function handleCreateSalesAgent(args) {
|
|
102
|
-
const { email, apiKey } = getAuthConfig();
|
|
106
|
+
const { email: envEmail, apiKey } = getAuthConfig();
|
|
107
|
+
// Use provided email, fall back to env variable
|
|
108
|
+
const email = args.email || envEmail;
|
|
103
109
|
if (!apiKey && !email) {
|
|
104
110
|
return JSON.stringify({
|
|
105
|
-
error: '
|
|
106
|
-
hint: '
|
|
111
|
+
error: 'Email address is required to create an agent',
|
|
112
|
+
hint: 'Please provide your email address so we can send you a link to claim your agent.',
|
|
107
113
|
});
|
|
108
114
|
}
|
|
109
115
|
const body = {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;GASG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAE5C,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,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automanus/mcp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "MCP server for AutoManus - Create AI sales agents via Claude, Cursor, and other AI tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"files": [
|
|
12
|
-
"dist"
|
|
12
|
+
"dist",
|
|
13
|
+
"README.md"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"build": "tsc",
|