File tree Expand file tree Collapse file tree 4 files changed +53
-13
lines changed
packages/auto-mcp-servers Expand file tree Collapse file tree 4 files changed +53
-13
lines changed Original file line number Diff line number Diff line change @@ -21,22 +21,14 @@ More servers and tools will be coming soon!
21
21
### With Claude Desktop
22
22
23
23
1 . Install Claude Desktop
24
- 2 . Install the Auto Drive server globally:
25
-
26
- ``` bash
27
- npm install -g @autonomys/auto-mcp-servers
28
- # or
29
- yarn global add @autonomys/auto-mcp-servers
30
- ```
31
-
32
- 3 . Edit your ` claude_desktop_config.json ` file:
24
+ 2 . Edit your ` claude_desktop_config.json ` file:
33
25
34
26
``` json
35
27
{
36
28
"mcpServers" : {
37
29
"auto-drive" : {
38
30
"command" : " npx" ,
39
- "args" : [" auto-drive-server " ],
31
+ "args" : [" -y " , " @autonomys/ auto-mcp-servers " , " auto-drive " ],
40
32
"env" : { "AUTO_DRIVE_API_KEY" : " your-api-key" }
41
33
}
42
34
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @autonomys/auto-mcp-servers" ,
3
3
"packageManager" : " yarn@4.7.0" ,
4
- "version" : " 0.1.0 " ,
4
+ "version" : " 0.1.1-alpha.2 " ,
5
5
"description" : " Autonomys Network MCP servers" ,
6
6
"repository" : {
7
7
"type" : " git" ,
18
18
"type" : " module" ,
19
19
"main" : " dist/index.js" ,
20
20
"bin" : {
21
- "auto-drive-server" : " ./dist/bin/auto-drive.js"
21
+ "auto-drive-server" : " ./dist/bin/auto-drive.js" ,
22
+ "auto-mcp-servers" : " ./dist/bin/main.js"
22
23
},
23
24
"scripts" : {
24
- "build" : " tsc"
25
+ "build" : " tsc" ,
26
+ "prepublishOnly" : " npm run build && chmod +x ./dist/bin/*.js"
25
27
},
26
28
"keywords" : [
27
29
" mcp" ,
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
4
+ import { autoDriveServer } from '../auto-drive/index.js'
5
+
6
+ const showHelp = ( ) => {
7
+ console . log ( `
8
+ Usage: auto-mcp-servers [server-name]
9
+
10
+ Available servers:
11
+ auto-drive Start the Auto Drive MCP server
12
+
13
+ Environment variables:
14
+ For Auto Drive server:
15
+ AUTO_DRIVE_API_KEY API key for Auto Drive (required)
16
+ NETWORK 'mainnet' (default) or 'taurus'
17
+ ENCRYPTION_PASSWORD Password for encryption (optional)
18
+ ` )
19
+ process . exit ( 1 )
20
+ }
21
+
22
+ const main = async ( ) => {
23
+ const serverName = process . argv [ 2 ] || 'auto-drive'
24
+ const transport = new StdioServerTransport ( )
25
+
26
+ switch ( serverName ) {
27
+ case 'auto-drive' :
28
+ await autoDriveServer . connect ( transport )
29
+ break
30
+ case 'help' :
31
+ case '--help' :
32
+ case '-h' :
33
+ showHelp ( )
34
+ break
35
+ default :
36
+ console . error ( `Unknown server: ${ serverName } ` )
37
+ showHelp ( )
38
+ break
39
+ }
40
+ }
41
+
42
+ main ( ) . catch ( ( error ) => {
43
+ console . error ( `Failed to start MCP server:` , error )
44
+ process . exit ( 1 )
45
+ } )
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ __metadata:
119
119
zod: "npm:^3.24.2"
120
120
bin:
121
121
auto-drive-server: ./dist/bin/auto-drive.js
122
+ auto-mcp-servers: ./dist/bin/main.js
122
123
languageName: unknown
123
124
linkType: soft
124
125
You can’t perform that action at this time.
0 commit comments