@specstream/pi-package 0.1.2 → 0.2.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.
package/README.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# SpecStream for Pi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The live web data engine. One platform to build, search, extract, enrich, map, and monitor data across the entire web.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Ask for any dataset in plain words, and SpecStream builds it from the entire live web: every match found, extracted and enriched into structured records, then monitored for change.
|
|
6
|
+
|
|
7
|
+
- Source URL and read time on every value.
|
|
8
|
+
- You see the price before anything runs and pay for each row delivered, from 5 cents each.
|
|
9
|
+
|
|
10
|
+
This is a [Pi package](https://pi.dev/packages). It adds the hosted [SpecStream](https://specstream.ai) MCP server and six skills. Search the web and read pages work with no quote. For lists, Pi shows how SpecStream read your request, gets the price, asks you to approve it, and returns the rows.
|
|
6
11
|
|
|
7
12
|
## Install
|
|
8
13
|
|
|
@@ -11,18 +16,20 @@ pi install npm:@specstream/pi-package
|
|
|
11
16
|
pi mcp login specstream
|
|
12
17
|
```
|
|
13
18
|
|
|
14
|
-
The second command opens SpecStream in your browser. Sign in and approve access; Pi stores the token and refreshes it. New accounts get $10 of
|
|
19
|
+
The second command opens SpecStream in your browser. Sign in and approve access; Pi stores the token and refreshes it. New accounts get $10 of credit for 30 days. Inside a session, `/mcp` shows the connection and lets you sign in or out.
|
|
15
20
|
|
|
16
21
|
Try it for one run without installing: `pi -e npm:@specstream/pi-package`.
|
|
17
22
|
|
|
18
23
|
## What you get
|
|
19
24
|
|
|
20
|
-
- **The SpecStream MCP server** at `https://api.specstream.ai/mcp`, registered by a small extension (`extensions/specstream.ts`). It uses Pi's built-in MCP support, OAuth 2.1 with dynamic client registration, and no stored credentials.
|
|
21
|
-
- **
|
|
25
|
+
- **The SpecStream MCP server** at `https://api.specstream.ai/mcp`, registered by a small extension (`extensions/specstream.ts`). It uses Pi's built-in MCP support, OAuth 2.1 with dynamic client registration, and no stored credentials. Seven tools stay in view (`search_web`, `read_pages`, `compile`, `quote_capacity_work`, `authorize_capacity_work`, `get_find`, `list_find_rows`); the rest load on demand through `tool_search`. In Pi they are named `mcp__specstream__<tool>`.
|
|
26
|
+
- **Six skills**, loaded when the task calls for them or by name:
|
|
22
27
|
|
|
23
28
|
| Skill | What it does |
|
|
24
29
|
|---|---|
|
|
25
|
-
| `/skill:specstream-
|
|
30
|
+
| `/skill:specstream-search-web` | Answers a question from the live web with sources ($5 per 1,000 searches) |
|
|
31
|
+
| `/skill:specstream-extract-pages` | Reads up to 20 web pages, PDFs, Word or Excel files ($0.80 per 1,000 pages) |
|
|
32
|
+
| `/skill:specstream-compile` | Shows how SpecStream read your request before anything runs |
|
|
26
33
|
| `/skill:specstream-review-work` | Gets the exact price and its expiry |
|
|
27
34
|
| `/skill:specstream-approve-work` | Starts the list after you approve that price |
|
|
28
35
|
| `/skill:specstream-continue-work` | Reads every row, sends them to Sheets, Excel, Notion, Airtable, HubSpot or Salesforce, brings back more, refreshes, monitors |
|
|
@@ -30,11 +37,7 @@ Try it for one run without installing: `pi -e npm:@specstream/pi-package`.
|
|
|
30
37
|
## Try it
|
|
31
38
|
|
|
32
39
|
```text
|
|
33
|
-
Find
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
```text
|
|
37
|
-
List open grants for food banks in Texas, with the deadline and the award size.
|
|
40
|
+
Find open grants for climate research in the EU, with the deadline and the award size.
|
|
38
41
|
```
|
|
39
42
|
|
|
40
43
|
Reading a request and getting its price are free. Nothing that costs money runs until you approve an exact maximum.
|
package/extensions/specstream.ts
CHANGED
|
@@ -4,11 +4,11 @@ export const SERVER_NAME = "specstream";
|
|
|
4
4
|
export const MCP_URL = "https://api.specstream.ai/mcp";
|
|
5
5
|
|
|
6
6
|
const DESCRIPTION =
|
|
7
|
-
"SpecStream
|
|
7
|
+
"SpecStream, the live web data engine. One platform to build, search, extract, enrich, map, and monitor data across the entire web. Reading and pricing a request are free; paid work needs the person's approval of an exact maximum.";
|
|
8
8
|
|
|
9
9
|
// The flow that every list goes through stays visible to the model. The rest of the
|
|
10
10
|
// server's tools load on demand through tool_search.
|
|
11
|
-
const DIRECT_TOOLS = ["compile", "quote_capacity_work", "authorize_capacity_work", "get_find", "list_find_rows"];
|
|
11
|
+
const DIRECT_TOOLS = ["search_web", "read_pages", "compile", "quote_capacity_work", "authorize_capacity_work", "get_find", "list_find_rows"];
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The server entry registered with Pi. Without a key Pi signs in with OAuth (`/mcp login specstream`).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@specstream/pi-package",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "SpecStream for Pi
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "SpecStream for Pi. The live web data engine. One platform to build, search, extract, enrich, map, and monitor data across the entire web. Adds the SpecStream MCP server and six agent skills.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"pi-package",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: specstream-compile
|
|
3
|
-
description:
|
|
3
|
+
description: Shows how SpecStream read a plain-words request, its conditions and the fields to bring back, before anything runs or costs. Use when someone wants data from the live web.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
category: search
|
|
@@ -13,6 +13,6 @@ SpecStream is the live web data engine for teams and agents. Use the configured
|
|
|
13
13
|
|
|
14
14
|
Use `compile` to read the person's request. Say back what it found: the kind of thing, the conditions, the details to bring back and the quantity. Separate the conditions that must hold from the details that are nice to have. Use `edit_spec` for a deliberate change. Never drop a hard condition quietly, and never treat missing evidence as a no. Reading a request does not start any work.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
If someone asks for people by job title, say that results may be few. `list_request_templates` returns requests that already work for each kind.
|
|
17
17
|
|
|
18
18
|
The same saved request can be revised, branched, compared and shared, in the workspace or through this agent. Never ask for an API key in chat. Use the connector's own sign-in.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specstream-extract-pages
|
|
3
|
+
description: Read the main text of up to 20 web pages, PDFs, Word or Excel files live with the Extract API ($0.80 per 1,000 pages).
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Read pages and documents live
|
|
7
|
+
|
|
8
|
+
SpecStream is the live web data engine for teams and agents. Use the configured MCP server at `https://api.specstream.ai/mcp`.
|
|
9
|
+
|
|
10
|
+
Use `read_pages` with `{"urls": ["<url>", ...]}` (1 to 20 `http` or `https` URLs) to read the clean main text, title and published date of web pages, PDFs, Word documents or Excel spreadsheets. Each page that returns text costs $0.0008 ($0.80 per 1,000 pages) from the account balance, and a page with no text is not charged. No quote or approval is needed.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specstream-search-web
|
|
3
|
+
description: Answer a question from the live web in seconds with the Search API ($5 per 1,000 searches, no quote needed).
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Search the live web
|
|
7
|
+
|
|
8
|
+
SpecStream is the live web data engine for teams and agents. Use the configured MCP server at `https://api.specstream.ai/mcp`.
|
|
9
|
+
|
|
10
|
+
Use `search_web` with `{"q": "<the question>"}` when the person needs one fact, a fast web search with sources, or a quick look at the first rows of a request before pricing a full Deep Search run. Set `"passages": true` when you want the main text passages of the closest pages included in the reply.
|
|
11
|
+
|
|
12
|
+
Each call costs $0.005 ($5 per 1,000 searches) from the account balance and needs no quote or approval. The reply returns `kind` (`fact` or `list`), `answer` (with `value`, `page` and `seen_at`), `rows` and ranked `sources`. When `kind` is `list`, `handoff` gives the estimated size and the `compile` call to price and run the full dataset.
|