@inf-mcp/mcp-server 0.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 ADDED
@@ -0,0 +1,309 @@
1
+ # @inflectiv/mcp-server
2
+
3
+ Connect AI coding assistants to the [Inflectiv](https://app.inflectiv.ai) platform. Create agents, manage knowledge, search your data, build skills from project memories, browse marketplaces, and chat — all from your IDE.
4
+
5
+ ## Quick Start
6
+
7
+ 1. Get an API key from [app.inflectiv.ai](https://app.inflectiv.ai) → **Settings → API Keys**
8
+ 2. Pick your IDE below and paste the config
9
+ 3. Ask your AI: *"list my agents"* or *"search my dataset for X"*
10
+
11
+ ---
12
+
13
+ ## Installation
14
+
15
+ ### Claude Code (one command)
16
+
17
+ ```bash
18
+ claude mcp add inflectiv -e INFLECTIV_API_KEY=inf_global_your_key_here -- npx -y @inflectiv/mcp-server
19
+ ```
20
+
21
+ To update your key later:
22
+
23
+ ```bash
24
+ claude mcp remove inflectiv
25
+ claude mcp add inflectiv -e INFLECTIV_API_KEY=inf_global_new_key -- npx -y @inflectiv/mcp-server
26
+ ```
27
+
28
+ ### Claude Desktop
29
+
30
+ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
31
+
32
+ ```json
33
+ {
34
+ "mcpServers": {
35
+ "inflectiv": {
36
+ "command": "npx",
37
+ "args": ["-y", "@inflectiv/mcp-server"],
38
+ "env": {
39
+ "INFLECTIV_API_KEY": "inf_global_your_key_here"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ ```
45
+
46
+ ### VS Code (GitHub Copilot)
47
+
48
+ Create `.vscode/mcp.json` in your project root:
49
+
50
+ ```json
51
+ {
52
+ "inputs": [
53
+ {
54
+ "type": "promptString",
55
+ "id": "inflectiv-api-key",
56
+ "description": "Inflectiv API Key (from app.inflectiv.ai → Settings → API Keys)",
57
+ "password": true
58
+ }
59
+ ],
60
+ "servers": {
61
+ "inflectiv": {
62
+ "type": "stdio",
63
+ "command": "npx",
64
+ "args": ["-y", "@inflectiv/mcp-server"],
65
+ "env": {
66
+ "INFLECTIV_API_KEY": "${input:inflectiv-api-key}"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ ```
72
+
73
+ Or hardcode the key (not recommended for shared repos):
74
+
75
+ ```json
76
+ {
77
+ "servers": {
78
+ "inflectiv": {
79
+ "type": "stdio",
80
+ "command": "npx",
81
+ "args": ["-y", "@inflectiv/mcp-server"],
82
+ "env": {
83
+ "INFLECTIV_API_KEY": "inf_global_your_key_here"
84
+ }
85
+ }
86
+ }
87
+ }
88
+ ```
89
+
90
+ ### Cursor
91
+
92
+ Create `.cursor/mcp.json` in your project root (or `~/.cursor/mcp.json` for global):
93
+
94
+ ```json
95
+ {
96
+ "mcpServers": {
97
+ "inflectiv": {
98
+ "command": "npx",
99
+ "args": ["-y", "@inflectiv/mcp-server"],
100
+ "env": {
101
+ "INFLECTIV_API_KEY": "inf_global_your_key_here"
102
+ }
103
+ }
104
+ }
105
+ }
106
+ ```
107
+
108
+ ### Windsurf
109
+
110
+ Add to `~/.codeium/windsurf/mcp_config.json` (macOS/Linux) or `%APPDATA%\Codeium\windsurf\mcp_config.json` (Windows):
111
+
112
+ ```json
113
+ {
114
+ "mcpServers": {
115
+ "inflectiv": {
116
+ "command": "npx",
117
+ "args": ["-y", "@inflectiv/mcp-server"],
118
+ "env": {
119
+ "INFLECTIV_API_KEY": "inf_global_your_key_here"
120
+ }
121
+ }
122
+ }
123
+ }
124
+ ```
125
+
126
+ ### Any Other MCP Client
127
+
128
+ Run `npx -y @inflectiv/mcp-server` with the `INFLECTIV_API_KEY` environment variable set. Works with any MCP-compatible client using stdio transport.
129
+
130
+ ---
131
+
132
+ ## Configuration
133
+
134
+ | Variable | Required | Default | Description |
135
+ |----------|----------|---------|-------------|
136
+ | `INFLECTIV_API_KEY` | Yes* | — | API key (`inf_*` dataset-scoped or `inf_global_*` account-level) |
137
+ | `INFLECTIV_BASE_URL` | No | `https://app.inflectiv.ai/api/platform` | Override API URL |
138
+ | `INFLECTIV_WALLET_PRIVATE_KEY` | No* | — | Private key for X402 crypto payments (alternative to credits) |
139
+
140
+ *At least one of `INFLECTIV_API_KEY` or `INFLECTIV_WALLET_PRIVATE_KEY` is required.
141
+
142
+ ### API Key Types
143
+
144
+ | Key Format | Scope | Use Case |
145
+ |------------|-------|----------|
146
+ | `inf_*` | Single dataset | Dataset-specific operations |
147
+ | `inf_global_*` | Full account | Skills, marketplace, multi-dataset access |
148
+
149
+ ---
150
+
151
+ ## Tools (38)
152
+
153
+ ### Agents (8) — requires API key
154
+
155
+ | Tool | Description | Credits |
156
+ |------|-------------|---------|
157
+ | `inflectiv_list_agents` | List all your agents | Free |
158
+ | `inflectiv_create_agent` | Create a new AI agent | 5 |
159
+ | `inflectiv_get_agent` | Get agent details | Free |
160
+ | `inflectiv_update_agent_config` | Update agent settings (model, personality, temperature, etc.) | 2 |
161
+ | `inflectiv_chat_with_agent` | Chat with RAG-enabled responses (supports multi-turn) | 1 |
162
+ | `inflectiv_list_agent_datasets` | List datasets attached to an agent | Free |
163
+ | `inflectiv_attach_dataset` | Attach a dataset to an agent | Free |
164
+ | `inflectiv_update_dataset_mode` | Switch between `read_only` and `self_learning` | Free |
165
+
166
+ ### Datasets & Search (8) — requires API key
167
+
168
+ | Tool | Description | Credits |
169
+ |------|-------------|---------|
170
+ | `inflectiv_list_datasets` | List accessible datasets | Free |
171
+ | `inflectiv_update_dataset` | Update dataset name/description | Free |
172
+ | `inflectiv_reindex_dataset` | Reindex vectors (run after bulk changes) | 2 |
173
+ | `inflectiv_search_dataset` | Semantic search across your knowledge base | 1 |
174
+ | `inflectiv_batch_search` | Run up to 20 searches in one call | 1/query |
175
+ | `inflectiv_write_intelligence` | Write a knowledge entry (auto-embedded & deduplicated) | 1 (0 if dup) |
176
+ | `inflectiv_batch_write_intelligence` | Write up to 50 entries in one call | 1/new entry |
177
+ | `inflectiv_list_intelligence` | List entries with filtering & pagination | Free |
178
+
179
+ ### Knowledge Sources (1) — requires API key
180
+
181
+ | Tool | Description | Credits |
182
+ |------|-------------|---------|
183
+ | `inflectiv_list_knowledge_sources` | List all sources (files, URLs, text, AI-generated) | Free |
184
+
185
+ ### Files (4) — requires API key
186
+
187
+ | Tool | Description | Credits |
188
+ |------|-------------|---------|
189
+ | `inflectiv_upload_file` | Upload a local file as a knowledge source | 5 + 1/MB over 5MB |
190
+ | `inflectiv_list_files` | List uploaded files | Free |
191
+ | `inflectiv_get_file` | Get file details & processing status | Free |
192
+ | `inflectiv_reprocess_file` | Retry a failed file upload | 5 |
193
+
194
+ **Supported formats:** PDF, DOCX, TXT, MD, HTML, CSV, JSON, JSONL, TSV, XLSX, XLS, Parquet, XML
195
+
196
+ ### Webhooks (3) — requires API key
197
+
198
+ | Tool | Description | Credits |
199
+ |------|-------------|---------|
200
+ | `inflectiv_register_webhook` | Subscribe to events (HTTPS only) | Free |
201
+ | `inflectiv_list_webhooks` | List registered webhooks | Free |
202
+ | `inflectiv_test_webhook` | Send a test event to verify your endpoint | Free |
203
+
204
+ **Events:** `intelligence.processed`, `intelligence.failed`, `intelligence.deduped`, `dataset.mode_changed`
205
+
206
+ ### Memory (5) — no API key needed
207
+
208
+ Local-only tools. Memories are stored in `.inflectiv/memory/` in the project root. Works completely offline.
209
+
210
+ | Tool | Description | Credits |
211
+ |------|-------------|---------|
212
+ | `inflectiv_write_memory` | Write a memory entry with category, tags, importance | Free |
213
+ | `inflectiv_list_memories` | List memories with optional filters | Free |
214
+ | `inflectiv_search_memories` | Keyword search over local memories | Free |
215
+ | `inflectiv_delete_memory` | Delete a memory entry by ID | Free |
216
+ | `inflectiv_suggest_skill_creation` | Analyze memories and recommend if ready for skill creation | Free |
217
+
218
+ ### Skills (4) — requires API key
219
+
220
+ | Tool | Description | Credits |
221
+ |------|-------------|---------|
222
+ | `inflectiv_create_skill` | Synthesize memories into a reusable skill document | 5 |
223
+ | `inflectiv_apply_skill` | Apply a skill to an agent (injects into system prompt + RAG) | 2 |
224
+ | `inflectiv_list_skills` | List owned and acquired skills | Free |
225
+ | `inflectiv_scan_skill_security` | Preview security scan before creating (passes 1-4) | Free |
226
+
227
+ ### Marketplace (5) — browsing is public, acquiring requires API key
228
+
229
+ | Tool | Description | Credits | Auth |
230
+ |------|-------------|---------|------|
231
+ | `inflectiv_browse_skill_marketplace` | Browse published skills with search & filters | Free | None |
232
+ | `inflectiv_get_skill_listing` | Get skill listing detail | Free | None |
233
+ | `inflectiv_acquire_skill` | Acquire a skill (free or paid) | Varies | API key |
234
+ | `inflectiv_browse_dataset_marketplace` | Browse published datasets | Free | None |
235
+ | `inflectiv_browse_agent_marketplace` | Browse published agents | Free | None |
236
+
237
+ ### Auth Summary
238
+
239
+ | Category | Count | API Key? |
240
+ |----------|-------|----------|
241
+ | Memory (local-only) | 5 | No |
242
+ | Marketplace browsing | 4 | No |
243
+ | **Subtotal (no key)** | **9** | |
244
+ | Agents, Datasets, Files, Webhooks, Knowledge | 24 | Yes |
245
+ | Skills | 4 | Yes |
246
+ | Marketplace acquire | 1 | Yes |
247
+ | **Subtotal (key required)** | **29** | |
248
+
249
+ ---
250
+
251
+ ## Examples
252
+
253
+ ```
254
+ "List my agents"
255
+ "Create an agent called Support Bot with a friendly personality"
256
+ "Upload my-data.pdf to the dataset"
257
+ "Search my knowledge base for refund policy"
258
+ "Chat with agent 42: What are the return deadlines?"
259
+ "Write this text as intelligence: <your knowledge>"
260
+ "Register a webhook at https://example.com/hook for processed events"
261
+
262
+ Memory (works offline, no API key):
263
+ "Remember that we use Tailwind CSS with the 'cn' helper"
264
+ "List all my project memories"
265
+ "Search memories for database migration"
266
+ "Am I ready to create a skill from my memories?"
267
+
268
+ Skills:
269
+ "Create a skill from my memories called 'React Patterns'"
270
+ "Apply skill 12 to agent 5"
271
+ "Scan this skill content for security issues"
272
+
273
+ Marketplace (browsing works without API key):
274
+ "Browse the skill marketplace for Python tools"
275
+ "Show me the top-rated agent listings"
276
+ "Acquire skill listing 42"
277
+ ```
278
+
279
+ ## Web Dashboard
280
+
281
+ Skills can also be managed through the Inflectiv web UI at [app.inflectiv.ai](https://app.inflectiv.ai):
282
+
283
+ - **`/skills`** — View your skills, acquired skills, and marketplace listings
284
+ - **`/skills/sell`** — Create a marketplace listing for a skill (security screening required)
285
+ - **`/marketplace`** (Skills tab) — Browse and acquire skills from the community
286
+ - **`/marketplace/skills/{id}`** — Skill detail page with reviews
287
+
288
+ Skills are delivered encrypted via the MCP server only — the web UI is for management, browsing, and selling, not content access.
289
+
290
+ ---
291
+
292
+ ## Resources
293
+
294
+ The server also exposes MCP resources for reference:
295
+
296
+ | URI | Content |
297
+ |-----|---------|
298
+ | `inflectiv://docs/overview` | Authentication, concepts, getting started |
299
+ | `inflectiv://docs/webhook-events` | Event types and payload examples |
300
+ | `inflectiv://docs/credit-costs` | Full credit cost table |
301
+
302
+ ## Requirements
303
+
304
+ - Node.js 18+
305
+ - An Inflectiv API key ([get one here](https://app.inflectiv.ai))
306
+
307
+ ## License
308
+
309
+ MIT
@@ -0,0 +1,2 @@
1
+
2
+ export { }