enact-cli 1.0.7 → 1.0.9
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 +89 -0
- package/dist/index.js +3964 -1434
- package/dist/index.js.bak +13709 -0
- package/dist/lib/enact-direct.js +8223 -0
- package/dist/mcp-direct.js +21593 -0
- package/dist/mcp-direct.js.bak +21593 -0
- package/dist/mcp-entry.js +21665 -0
- package/dist/mcp-entry.js.bak +21665 -0
- package/dist/mcp-server.js +22520 -0
- package/dist/mcp-server.js.bak +22519 -0
- package/package.json +21 -6
package/README.md
CHANGED
|
@@ -1,3 +1,92 @@
|
|
|
1
|
+
# Enact CLI
|
|
2
|
+
|
|
3
|
+
Official CLI for the Enact Protocol - package, secure, and discover AI tools.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🔍 **Search & Discovery** - Find AI tools in the Enact ecosystem
|
|
8
|
+
- ⚡ **Execute Tools** - Run tools directly with secure execution
|
|
9
|
+
- 📦 **Publishing** - Publish your own tools to the registry
|
|
10
|
+
- 🔐 **Security** - Cryptographic signing and verification
|
|
11
|
+
- 🎯 **MCP Integration** - Full Model Context Protocol support
|
|
12
|
+
- 🚀 **Direct Library** - Use as a library in your applications
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### For End Users
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Install globally
|
|
20
|
+
npm install -g enact-cli
|
|
21
|
+
|
|
22
|
+
# Now you can use:
|
|
23
|
+
enact search --tags web,api
|
|
24
|
+
enact exec author/tool-name
|
|
25
|
+
enact-mcp-server # Start MCP server
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### For MCP (Model Context Protocol) Users
|
|
29
|
+
|
|
30
|
+
After installation, you can use Enact with any MCP client:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# With MCP Inspector
|
|
34
|
+
npx @modelcontextprotocol/inspector enact-mcp-server
|
|
35
|
+
|
|
36
|
+
# In Claude Desktop (add to config)
|
|
37
|
+
{
|
|
38
|
+
"mcpServers": {
|
|
39
|
+
"enact": {
|
|
40
|
+
"command": "enact-mcp-server"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
See [MCP_USAGE.md](./MCP_USAGE.md) for detailed MCP integration guide.
|
|
47
|
+
|
|
48
|
+
## Quick Start
|
|
49
|
+
|
|
50
|
+
### CLI Usage
|
|
51
|
+
```bash
|
|
52
|
+
# Search for tools
|
|
53
|
+
enact search "text processing"
|
|
54
|
+
|
|
55
|
+
# Get help
|
|
56
|
+
enact --help
|
|
57
|
+
|
|
58
|
+
# Execute a tool
|
|
59
|
+
enact exec author/tool-name --input '{"key": "value"}'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### MCP Server Usage
|
|
63
|
+
```bash
|
|
64
|
+
# Start the comprehensive MCP server
|
|
65
|
+
enact-mcp-server
|
|
66
|
+
|
|
67
|
+
# Start the MCP server
|
|
68
|
+
enact-mcp
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Library Usage
|
|
72
|
+
```typescript
|
|
73
|
+
import { executeToolByName, searchTools } from 'enact-cli/dist/lib/enact-direct.js';
|
|
74
|
+
|
|
75
|
+
// Search for tools
|
|
76
|
+
const tools = await searchTools({ query: 'text processing', limit: 5 });
|
|
77
|
+
|
|
78
|
+
// Execute a tool
|
|
79
|
+
const result = await executeToolByName('author/tool-name', { input: 'data' });
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Available MCP Servers
|
|
83
|
+
|
|
84
|
+
This package provides multiple MCP server options:
|
|
85
|
+
|
|
86
|
+
| Command | Description | Best For |
|
|
87
|
+
|---------|-------------|----------|
|
|
88
|
+
| `enact-mcp` | Modern MCP server | All integrations |
|
|
89
|
+
|
|
1
90
|
## Development
|
|
2
91
|
|
|
3
92
|
This section provides instructions for setting up your development environment and contributing to the Enact CLI.
|