mcpscraper-memory-sdk 0.2.0 → 0.3.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 +14 -4
- package/dist/index.cjs +1533 -0
- package/dist/index.d.cts +13812 -286
- package/dist/index.d.ts +13812 -286
- package/dist/index.js +1528 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# mcpscraper-memory-sdk
|
|
2
2
|
|
|
3
|
-
Official TypeScript/JavaScript
|
|
3
|
+
Official TypeScript/JavaScript clients for all 145 tools at [mcpscraper.dev](https://mcpscraper.dev) plus the direct 85-tool [memory.mcpscraper.dev](https://memory.mcpscraper.dev) API.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
These are thin clients: `MemoryClient` calls the direct memory MCP with a memory Bearer key, while `McpToolsClient` calls the unified MCP with a scraper API key. No product logic lives in this package.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -10,6 +10,16 @@ This is a thin client: every method sends a JSON-RPC 2.0 `tools/call` request to
|
|
|
10
10
|
npm install mcpscraper-memory-sdk
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
For the complete unified surface, use the same `McpToolsClient` exported by every SDK package:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { McpToolsClient } from 'mcpscraper-memory-sdk'
|
|
17
|
+
|
|
18
|
+
const tools = new McpToolsClient({ apiKey: process.env.MCP_SCRAPER_API_KEY! })
|
|
19
|
+
await tools.browser.listSessions()
|
|
20
|
+
await tools.memory.search({ query: 'q3 roadmap decisions' })
|
|
21
|
+
```
|
|
22
|
+
|
|
13
23
|
## Quickstart
|
|
14
24
|
|
|
15
25
|
```ts
|
|
@@ -34,7 +44,7 @@ try {
|
|
|
34
44
|
|
|
35
45
|
## Namespaces
|
|
36
46
|
|
|
37
|
-
|
|
47
|
+
`MemoryClient` retains the direct 85-tool memory namespaces. `McpToolsClient` is generated from [`contracts/mcp.tools.json`](../../contracts/mcp.tools.json) and contains all 145 tools across 30 namespaces.
|
|
38
48
|
|
|
39
49
|
Every method's input/output types are generated from the live tool schemas (see `src/generated/`, produced by `npm run generate` at the repo root from `contracts/memory.tools.json`) — no hand-maintained duplicate types to drift out of sync.
|
|
40
50
|
|
|
@@ -48,4 +58,4 @@ All failures — HTTP-level, JSON-RPC-level, and MCP tool-level (`isError: true`
|
|
|
48
58
|
|
|
49
59
|
## See also
|
|
50
60
|
|
|
51
|
-
[Repo README](../../README.md) (multi-language examples with real sample output) · [`mcpscraper-sdk`](../scraper) (Node, also reaches these 85 tools via `client.memoryTools` using only a scraper key) · [`mcpscraper-memory-sdk`
|
|
61
|
+
[Repo README](../../README.md) (multi-language examples with real sample output) · [`mcpscraper-sdk`](../scraper) (Node, also reaches these 85 tools via `client.memoryTools` using only a scraper key) · [`mcpscraper-memory-sdk` Python source package](../memory-python) · [`mcpscraper-cli`](../cli)
|