@almyty/mcp-server 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +48 -79
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,54 +1,14 @@
1
1
  # @almyty/mcp-server
2
2
 
3
- Skill-first API proxy for any LLM — turns APIs into AI skills with minimal token overhead.
4
-
5
- ## The Problem with Traditional MCP
6
-
7
- MCP dumps every tool's full JSON Schema into the LLM's context window:
8
-
9
- ```
10
- 20 tools × ~200 tokens/schema = ~4,000 tokens/turn (always in context)
11
- 400 tools = 80,000+ tokens (unusable)
12
- ```
13
-
14
- ## The Skill-First Solution
15
-
16
- Instead of N tool schemas, inject:
17
- 1. **2 tools** (`almyty_execute` + `almyty_search`) = ~300 tokens base
18
- 2. **Skills as prompts** = loaded on-demand, only when needed
19
-
20
- ```
21
- Token overhead: ~300 tokens (fixed) vs ~4,000+ tokens (scales with tool count)
22
- ```
23
-
24
- Skills are compact markdown that teach the LLM **workflows** — when to use a tool, what parameters to collect, how to handle errors. The LLM loads a skill on demand, then calls `almyty_execute` with the right tool name.
25
-
26
- ## How It Works
27
-
28
- ```
29
- LLM wants to "create a pet"
30
- ↓
31
- 1. Calls almyty_search("pet") → finds relevant tools
32
- 2. Loads skill-petstore prompt → learns the workflow
33
- 3. Calls almyty_execute(tool_name="addPet", parameters={...})
34
- ↓
35
- almyty backend executes against the actual API
36
- ```
3
+ Local MCP server that connects your AI coding agent to [almyty](https://almyty.com) tools and skills.
37
4
 
38
5
  ## Quick Start
39
6
 
40
7
  ```bash
41
- export APIFAI_URL=http://localhost:4000
42
- export APIFAI_TOKEN=your-jwt-token
43
8
  npx @almyty/mcp-server
44
9
  ```
45
10
 
46
- Or login interactively:
47
- ```bash
48
- npx @almyty/mcp-server login
49
- ```
50
-
51
- ## Configuration
11
+ ## Setup
52
12
 
53
13
  ### Claude Code
54
14
 
@@ -56,15 +16,40 @@ npx @almyty/mcp-server login
56
16
  claude mcp add almyty -- npx -y @almyty/mcp-server
57
17
  ```
58
18
 
59
- ### Cursor (`.cursor/mcp.json`)
19
+ ### Cursor / Windsurf (`.cursor/mcp.json`)
60
20
 
61
21
  ```json
62
22
  {
63
23
  "mcpServers": {
64
24
  "almyty": {
65
25
  "command": "npx",
66
- "args": ["-y", "@almyty/mcp-server"],
67
- "env": { "APIFAI_URL": "http://localhost:4000", "APIFAI_TOKEN": "..." }
26
+ "args": ["-y", "@almyty/mcp-server"]
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ ### VS Code Copilot (`.vscode/mcp.json`)
33
+
34
+ ```json
35
+ {
36
+ "servers": {
37
+ "almyty": {
38
+ "command": "npx",
39
+ "args": ["-y", "@almyty/mcp-server"]
40
+ }
41
+ }
42
+ }
43
+ ```
44
+
45
+ ### Google Gemini CLI (`~/.gemini/settings.json`)
46
+
47
+ ```json
48
+ {
49
+ "mcpServers": {
50
+ "almyty": {
51
+ "command": "npx",
52
+ "args": ["-y", "@almyty/mcp-server"]
68
53
  }
69
54
  }
70
55
  }
@@ -76,55 +61,39 @@ claude mcp add almyty -- npx -y @almyty/mcp-server
76
61
  [mcp_servers.almyty]
77
62
  command = "npx"
78
63
  args = ["-y", "@almyty/mcp-server"]
79
-
80
- [mcp_servers.almyty.env]
81
- APIFAI_URL = "http://localhost:4000"
82
- APIFAI_TOKEN = "your-jwt-token"
83
64
  ```
84
65
 
85
- ### GitHub Copilot (`.vscode/mcp.json`)
66
+ ## How It Works
86
67
 
87
- ```json
88
- { "servers": { "almyty": { "command": "npx", "args": ["-y", "@almyty/mcp-server"] } } }
89
- ```
68
+ Instead of dumping every tool schema into the LLM context (thousands of tokens), this server uses a skill-first approach:
90
69
 
91
- ### Google Gemini CLI (`~/.gemini/settings.json`)
70
+ 1. **2 tools** exposed to the LLM: `almyty_execute` + `almyty_search`
71
+ 2. **Skills as prompts** loaded on demand when the LLM needs them
72
+ 3. LLM searches for relevant tools → loads the skill → calls execute
92
73
 
93
- ```json
94
- { "mcpServers": { "almyty": { "command": "npx", "args": ["-y", "@almyty/mcp-server"] } } }
74
+ ```
75
+ Traditional MCP: 20 tools × ~200 tokens = ~4,000 tokens (always in context)
76
+ Skill-first: 2 tools + on-demand skills = ~300 tokens base
95
77
  ```
96
78
 
97
79
  ## Environment Variables
98
80
 
99
81
  | Variable | Default | Description |
100
82
  |----------|---------|-------------|
101
- | `APIFAI_URL` | `http://localhost:4000` | almyty backend URL |
102
- | `APIFAI_TOKEN` | — | JWT Bearer token |
103
- | `APIFAI_GATEWAY_ID` | — | Scope to a specific gateway |
104
- | `APIFAI_MODE` | `skill-first` | `skill-first` or `full` |
83
+ | `ALMYTY_URL` | `https://api.almyty.com` | almyty API URL |
84
+ | `ALMYTY_TOKEN` | — | Auth token (or use `npx @almyty/mcp-server login`) |
85
+ | `ALMYTY_GATEWAY_ID` | — | Scope to a specific gateway |
105
86
 
106
- ## Modes
87
+ ## Authentication
107
88
 
108
- | Mode | Tools in context | Token overhead | How it works |
109
- |------|-----------------|----------------|--------------|
110
- | `skill-first` | 2 (execute + search) | ~300 tokens | Skills loaded on demand via prompts |
111
- | `full` | All N tools | ~N×200 tokens | Traditional MCP (every schema in context) |
112
-
113
- ## Architecture
89
+ ```bash
90
+ # Interactive login (opens browser)
91
+ npx @almyty/mcp-server login
114
92
 
93
+ # Or set token directly
94
+ export ALMYTY_TOKEN=your-token
95
+ npx @almyty/mcp-server
115
96
  ```
116
- Your LLM (Claude, Cursor, Copilot, Codex, Gemini)
117
- ↕ MCP stdio (2 tools + skills as prompts)
118
- @almyty/mcp-server
119
- ↕ HTTP/JSON-RPC
120
- almyty backend (tools + skills + auth)
121
- ↕ HTTP/GraphQL/SOAP/gRPC
122
- Your APIs (OpenAPI, GraphQL, SOAP, Protobuf)
123
- ```
124
-
125
- **Auth model:**
126
- - User → almyty: JWT token (env var or `npx @almyty/mcp-server login`)
127
- - almyty → APIs: Managed within almyty (API keys, OAuth, etc.)
128
97
 
129
98
  ## License
130
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almyty/mcp-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Skill-first API proxy for any LLM — turns APIs into AI skills via MCP with minimal token overhead",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",