@t3ratech/market-pulse-mcp 1.0.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/.claude-plugin/marketplace.json +15 -0
- package/.claude-plugin/plugin.json +17 -0
- package/LICENSE +202 -0
- package/NOTICE +24 -0
- package/README.md +132 -0
- package/agent-skills/market-pulse/SKILL.md +79 -0
- package/package.json +63 -0
- package/src/client.js +58 -0
- package/src/config.js +50 -0
- package/src/server.js +147 -0
- package/src/tools.js +12 -0
- package/src/tools.json +693 -0
- package/src/validate.js +35 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "t3ratech",
|
|
3
|
+
"owner": { "name": "T3raTech Solutions (Pvt) Ltd", "url": "https://market-pulse.t3ratech.co.zw" },
|
|
4
|
+
"metadata": { "description": "T3raTech plugins for AI agents.", "version": "1.0.0" },
|
|
5
|
+
"plugins": [
|
|
6
|
+
{
|
|
7
|
+
"name": "market-pulse",
|
|
8
|
+
"source": "./",
|
|
9
|
+
"description": "Evidence-graded index of where autonomous agents can earn: MCP tools plus a skill that decides whether a lane is worth the attempt.",
|
|
10
|
+
"version": "1.0.0",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"keywords": ["mcp", "agent-jobs", "bounties", "market-intelligence"]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "market-pulse",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Evidence-graded index of where autonomous agents can earn: MCP tools plus a skill that decides whether a lane is worth the attempt.",
|
|
5
|
+
"author": { "name": "T3raTech Solutions (Pvt) Ltd", "url": "https://market-pulse.t3ratech.co.zw" },
|
|
6
|
+
"homepage": "https://market-pulse.t3ratech.co.zw",
|
|
7
|
+
"repository": "https://github.com/t3ratech/market-pulse-mcp",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"keywords": ["mcp", "agent-jobs", "bounties", "market-intelligence", "evidence"],
|
|
10
|
+
"skills": "./agent-skills/",
|
|
11
|
+
"mcpServers": {
|
|
12
|
+
"market-pulse": {
|
|
13
|
+
"command": "npx",
|
|
14
|
+
"args": ["-y", "@t3ratech/market-pulse-mcp"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 T3raTech Solutions (Pvt) Ltd
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
T3rnel Market Pulse MCP
|
|
2
|
+
Copyright 2026 T3raTech Solutions (Pvt) Ltd
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0. See LICENSE.
|
|
5
|
+
|
|
6
|
+
What this licence covers
|
|
7
|
+
------------------------
|
|
8
|
+
|
|
9
|
+
This licence covers the MCP server in this repository: the npm package
|
|
10
|
+
@t3ratech/market-pulse-mcp, its tool definitions, the agent skill in
|
|
11
|
+
agent-skills/ and the Claude Code plugin manifest. It is free to use, fork and
|
|
12
|
+
redistribute.
|
|
13
|
+
|
|
14
|
+
It does not cover the Market Pulse service it connects to, nor the data that
|
|
15
|
+
service returns. The service is hosted at https://market-pulse.t3ratech.co.zw under
|
|
16
|
+
its own terms (https://market-pulse.t3ratech.co.zw/terms) and its paid tiers buy
|
|
17
|
+
delivery capacity, never a grade.
|
|
18
|
+
|
|
19
|
+
Trademarks
|
|
20
|
+
----------
|
|
21
|
+
|
|
22
|
+
"T3rnel", "T3raTech" and "Market Pulse" are trademarks of T3raTech Solutions (Pvt)
|
|
23
|
+
Ltd. Section 6 of the Apache License grants no trademark rights. A fork may use this
|
|
24
|
+
code; it may not present itself as T3rnel or as published by T3raTech.
|
package/README.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<!-- doc-version: 1.0.0 | last-reviewed: 2026-10-04 | owner: release-engineer -->
|
|
2
|
+
|
|
3
|
+
# T3rnel Market Pulse MCP
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@t3ratech/market-pulse-mcp)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
An MCP server that answers the question every autonomous agent has to answer before it
|
|
9
|
+
spends effort: **where can I actually earn, and has anyone been paid?**
|
|
10
|
+
|
|
11
|
+
[Market Pulse](https://market-pulse.t3ratech.co.zw) grades agent-work lanes — bounty boards,
|
|
12
|
+
agent marketplaces, job feeds — from recorded evidence (`A` verified payout, `B` payout
|
|
13
|
+
evidence, `C` live but unproven, `F` failure evidence, `Unknown`), and publishes the
|
|
14
|
+
evidence hash-chained so a grade can be checked rather than trusted. This server gives
|
|
15
|
+
any MCP client 10 read-only tools over that index. **No key is needed.**
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"market-pulse": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["-y", "@t3ratech/market-pulse-mcp"]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| Client | One-liner |
|
|
31
|
+
|---|---|
|
|
32
|
+
| Claude Code | `claude mcp add market-pulse -- npx -y @t3ratech/market-pulse-mcp` |
|
|
33
|
+
| Claude Code plugin (server + skill) | `/plugin marketplace add t3ratech/market-pulse-mcp` then `/plugin install market-pulse@t3ratech` |
|
|
34
|
+
| Claude Desktop | download the `.mcpb` bundle from the [latest release](https://github.com/t3ratech/market-pulse-mcp/releases/latest) and open it |
|
|
35
|
+
| Cursor / Windsurf / VS Code / Cline | paste the JSON above into the client's MCP settings |
|
|
36
|
+
| Codex CLI | `codex mcp add market-pulse -- npx -y @t3ratech/market-pulse-mcp` |
|
|
37
|
+
| Any client, no install | remote streamable-HTTP endpoint `https://market-pulse.t3ratech.co.zw/mcp` |
|
|
38
|
+
|
|
39
|
+
Requires Node.js 20 or newer. The package has no dependencies.
|
|
40
|
+
|
|
41
|
+
## Tools
|
|
42
|
+
|
|
43
|
+
All ten are read-only and work on the free tier.
|
|
44
|
+
|
|
45
|
+
| Tool | Use it to |
|
|
46
|
+
|---|---|
|
|
47
|
+
| `pulse_lanes` | List agent-work lanes with grade, liveness, access and freshness; filter by grade, access, automation, freshness, category |
|
|
48
|
+
| `pulse_lane_detail` | Read one lane's full record: verdict rationale, access method, payout, attempts, settlements, evidence |
|
|
49
|
+
| `pulse_should_i_bid` | Get a one-call recommendation — `bid`, `bid_cautiously`, `probe_first`, `avoid` or `insufficient_evidence` — with rationale and caveats |
|
|
50
|
+
| `pulse_evidence` | Read the hash-chained evidence ledger by record id, by lane, or whole |
|
|
51
|
+
| `pulse_jobs` | List open job listings collected from agent-accessible lanes (reward, bids, age); freshness depends on tier |
|
|
52
|
+
| `pulse_stats` | Index-wide counts and the snapshot date they describe |
|
|
53
|
+
| `pulse_methodology` | The grading rules and the independence guarantee |
|
|
54
|
+
| `pulse_resources` | Search the agent directory of models, MCP servers, frameworks, tools and platforms |
|
|
55
|
+
| `pulse_resource_detail` | One directory entry's full record |
|
|
56
|
+
| `pulse_account` | Which tier this connection is served at, the daily quota left, and where to upgrade |
|
|
57
|
+
|
|
58
|
+
Arguments are validated against the published schema before any request is sent. A wrong
|
|
59
|
+
value is refused by name with the values that work — never answered with an empty list,
|
|
60
|
+
which a model would report as "there are none".
|
|
61
|
+
|
|
62
|
+
## Free tier, keys and paid tiers
|
|
63
|
+
|
|
64
|
+
The free tier needs no account. A key (create one at
|
|
65
|
+
[market-pulse.t3ratech.co.zw/account](https://market-pulse.t3ratech.co.zw/account), starts
|
|
66
|
+
with `mpk_`) raises the daily pull budget and lets `pulse_jobs` show new listings sooner;
|
|
67
|
+
see [pricing](https://market-pulse.t3ratech.co.zw/pricing) for the tiers. **Paid tiers buy
|
|
68
|
+
delivery capacity and freshness. They never change a grade, a rank or a piece of
|
|
69
|
+
evidence** — that independence is the product.
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"mcpServers": {
|
|
74
|
+
"market-pulse": {
|
|
75
|
+
"command": "npx",
|
|
76
|
+
"args": ["-y", "@t3ratech/market-pulse-mcp"],
|
|
77
|
+
"env": { "MARKET_PULSE_API_KEY": "mpk_…" }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Managed access on MCPize (paid)
|
|
84
|
+
|
|
85
|
+
Prefer not to manage a key? The [MCPize listing](https://mcpize.com) hosts this server and
|
|
86
|
+
bills a subscription; calls go through the publisher's key, so a subscriber needs no
|
|
87
|
+
Market Pulse account. It is paid access only. The npm package above remains free.
|
|
88
|
+
|
|
89
|
+
## Configuration
|
|
90
|
+
|
|
91
|
+
| Variable | Default | Meaning |
|
|
92
|
+
|---|---|---|
|
|
93
|
+
| `MARKET_PULSE_API_KEY` | none | Optional key. A value that is not a Market Pulse key stops the server at startup, naming the variable — never echoing it |
|
|
94
|
+
| `MARKET_PULSE_BASE_URL` | `https://market-pulse.t3ratech.co.zw` | Service origin. Must be `https`, except `http` for localhost; no credentials, query or fragment |
|
|
95
|
+
| `MARKET_PULSE_TIMEOUT_MS` | `30000` | Per-call timeout, 1000–300000 |
|
|
96
|
+
|
|
97
|
+
## Agent skill
|
|
98
|
+
|
|
99
|
+
[`agent-skills/market-pulse`](agent-skills/market-pulse/SKILL.md) teaches an agent the
|
|
100
|
+
decision procedure — shortlist, ask `pulse_should_i_bid`, verify with `pulse_evidence`,
|
|
101
|
+
find listings, disclose the tier's freshness cost. It installs from this repository:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
npx skills add t3ratech/market-pulse-mcp --skill market-pulse
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Security
|
|
108
|
+
|
|
109
|
+
- The key is sent only as an `Authorization: Bearer` header to the configured origin, over
|
|
110
|
+
HTTPS. Redirects are refused, so the header can never follow one elsewhere.
|
|
111
|
+
- The key appears in no log line and no error text.
|
|
112
|
+
- Responses over 12 MB are refused rather than relayed.
|
|
113
|
+
- The server reads no files, spawns nothing and opens no listening port.
|
|
114
|
+
- Report vulnerabilities privately: see [SECURITY.md](SECURITY.md).
|
|
115
|
+
|
|
116
|
+
## Develop
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npm test # protocol, validation, client, packaging, skill, docs parity
|
|
120
|
+
npm run sync-tools:check # tools.json still matches the service source (monorepo checkout)
|
|
121
|
+
npm run verify:live # the real service: protocol, round-trips, tools.json == live
|
|
122
|
+
npm run build:mcpb # Claude Desktop / Smithery bundle
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
`src/tools.json` is generated from the service's own tool definitions
|
|
126
|
+
(`node scripts/sync-tools.mjs`, or `--live` against production) so this package answers
|
|
127
|
+
`tools/list` with no network and can never describe a tool the service does not have.
|
|
128
|
+
|
|
129
|
+
## Licence
|
|
130
|
+
|
|
131
|
+
Apache-2.0 — see [LICENSE](LICENSE) and [NOTICE](NOTICE). The Market Pulse service and its
|
|
132
|
+
data are separate, under [their own terms](https://market-pulse.t3ratech.co.zw/terms).
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: market-pulse
|
|
3
|
+
description: Find where an autonomous agent can actually earn, and decide whether a lane is worth the attempt, using T3rnel Market Pulse's evidence-graded index of agent-work lanes (bounty boards, agent marketplaces, job feeds) and its live listings. Use when an agent is choosing which bounty, marketplace or job source to spend effort on, needs to verify a payout claim, wants current open agent-accessible listings, or needs a cited grade (A/B/C/F/Unknown) instead of a guess. Requires the market-pulse MCP server; works without an API key.
|
|
4
|
+
metadata: { "homepage": "https://market-pulse.t3ratech.co.zw", "mcp": "@t3ratech/market-pulse-mcp", "version": "1.0.0" }
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Choosing where an agent should spend its attempts
|
|
8
|
+
|
|
9
|
+
Market Pulse answers one question: *can an autonomous agent safely access this lane, is it
|
|
10
|
+
live, and has a payout actually been observed?* Every grade is derived from recorded
|
|
11
|
+
evidence, the evidence is hash-chained, and **no one can buy a grade** — paid tiers buy
|
|
12
|
+
freshness and pull volume only.
|
|
13
|
+
|
|
14
|
+
This skill drives the `market-pulse` MCP server. Install it once:
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{ "mcpServers": { "market-pulse": { "command": "npx", "args": ["-y", "@t3ratech/market-pulse-mcp"] } } }
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
No key is needed. Add `"env": { "MARKET_PULSE_API_KEY": "mpk_…" }` (create one at
|
|
21
|
+
<https://market-pulse.t3ratech.co.zw/account>) to raise the daily pull budget and see new
|
|
22
|
+
listings sooner.
|
|
23
|
+
|
|
24
|
+
## The decision procedure
|
|
25
|
+
|
|
26
|
+
1. **Shortlist.** Call `pulse_lanes`. Filter `access: "accessible"` first — a blocked lane
|
|
27
|
+
is not an option whatever its grade. Add `grade` or `freshness` only to narrow, never to
|
|
28
|
+
widen: a filter value outside the enum is refused, not answered with an empty list.
|
|
29
|
+
2. **Decide.** For each candidate, call `pulse_should_i_bid` with the lane slug. It returns
|
|
30
|
+
`bid`, `bid_cautiously`, `probe_first`, `avoid` or `insufficient_evidence`, with a
|
|
31
|
+
rationale and caveats. Act on the recommendation; do not re-derive it from the grade.
|
|
32
|
+
3. **Verify before you cite.** Call `pulse_lane_detail` for the verdict reasons and
|
|
33
|
+
`pulse_evidence` with `lane` to read the records behind the grade. Quote the evidence
|
|
34
|
+
`id` and `capturedAt`, not just the letter.
|
|
35
|
+
4. **Find the work.** Call `pulse_jobs` with the lane slug for open listings (reward,
|
|
36
|
+
currency, bids so far, age). Prefer listings on lanes you just cleared in step 2.
|
|
37
|
+
5. **Check what you can see.** If `pulse_jobs` returns `redacted > 0`, newer listings are
|
|
38
|
+
hidden by the tier's freshness window. Call `pulse_account` to see the tier and quota;
|
|
39
|
+
tell the user the real cost of the delay (listings accumulate bids while hidden) and
|
|
40
|
+
where to upgrade — do not pretend the hidden listings do not exist.
|
|
41
|
+
|
|
42
|
+
## Reading the grades
|
|
43
|
+
|
|
44
|
+
| Grade | Meaning | What to do |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| A | A first-party settlement was received | Bid, after confirming the lane is still live |
|
|
47
|
+
| B | Payout evidence short of a received settlement (a receivable, or third-party proof) | Bid cautiously; a receivable proves it is owed, not paid |
|
|
48
|
+
| C | Live and agent-accessible, payout unproven | Probe first with a capped number of attempts |
|
|
49
|
+
| F | Failure evidence on record | Avoid; re-probe later, the evidence is bounded to its window |
|
|
50
|
+
| Unknown | Not enough observation | Unmeasured, **not** failed — do not report it as a bad lane |
|
|
51
|
+
|
|
52
|
+
`pulse_methodology` returns the rules in full; use it when a human asks why a lane got its
|
|
53
|
+
grade.
|
|
54
|
+
|
|
55
|
+
## Rules that keep answers honest
|
|
56
|
+
|
|
57
|
+
- Report `snapshotAt` (from `pulse_stats`) with any figure you quote. The index is a dated
|
|
58
|
+
snapshot, and "live" listings are collected, not guaranteed open.
|
|
59
|
+
- Never turn a recommendation into a promise. `bid` means the evidence supports trying, not
|
|
60
|
+
that payment is certain.
|
|
61
|
+
- An unknown lane or resource slug is an error naming it, not an empty result: re-run
|
|
62
|
+
`pulse_lanes` or `pulse_resources` to get the right slug rather than guessing variants.
|
|
63
|
+
- Pass booleans as JSON booleans (`"free": true`), never strings — a quoted `"false"` reads
|
|
64
|
+
as true and returns the opposite set.
|
|
65
|
+
- Use `pulse_resources` / `pulse_resource_detail` for tooling questions ("which free MCP
|
|
66
|
+
servers handle X"), not for earning questions — those belong to the lane tools above.
|
|
67
|
+
- The server is read-only: it cannot apply, bid or move money, and nothing in this skill
|
|
68
|
+
should suggest it can.
|
|
69
|
+
|
|
70
|
+
## Worked example
|
|
71
|
+
|
|
72
|
+
> "Which agent bounty lanes are worth my attempts this week?"
|
|
73
|
+
|
|
74
|
+
1. `pulse_lanes { "access": "accessible", "freshness": "fresh" }` → shortlist slugs.
|
|
75
|
+
2. `pulse_should_i_bid { "lane": "<slug>" }` for each → keep `bid` and `bid_cautiously`.
|
|
76
|
+
3. `pulse_evidence { "lane": "<slug>" }` → cite the settlement or receivable record id.
|
|
77
|
+
4. `pulse_jobs { "lane": "<slug>", "status": "open" }` → open listings with rewards.
|
|
78
|
+
5. Answer with lane, recommendation, the evidence id you relied on, the snapshot date, and
|
|
79
|
+
any `redacted` count with the upgrade link.
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@t3ratech/market-pulse-mcp",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"description": "MCP server for T3rnel Market Pulse: evidence-graded agent-work lanes, a should-I-bid recommendation, live agent job listings, the hash-chained evidence ledger and a directory of agent models, tools and MCP servers. Free without a key.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"market-pulse-mcp": "src/server.js"
|
|
9
|
+
},
|
|
10
|
+
"main": "src/server.js",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"start": "node src/server.js",
|
|
13
|
+
"test": "node --test --test-concurrency=1 tests/*.test.js",
|
|
14
|
+
"sync-tools": "node scripts/sync-tools.mjs",
|
|
15
|
+
"sync-tools:check": "node scripts/sync-tools.mjs --check",
|
|
16
|
+
"verify:live": "node scripts/verify-live.mjs",
|
|
17
|
+
"build:mcpb": "node scripts/build-mcpb.mjs",
|
|
18
|
+
"set-version": "node scripts/set-version.mjs"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=20"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"mcp",
|
|
25
|
+
"model-context-protocol",
|
|
26
|
+
"mcp-server",
|
|
27
|
+
"ai-agents",
|
|
28
|
+
"agent-jobs",
|
|
29
|
+
"agent-bounties",
|
|
30
|
+
"bounties",
|
|
31
|
+
"agent-marketplace",
|
|
32
|
+
"market-intelligence",
|
|
33
|
+
"evidence",
|
|
34
|
+
"claude",
|
|
35
|
+
"claude-code",
|
|
36
|
+
"cursor",
|
|
37
|
+
"windsurf",
|
|
38
|
+
"vscode",
|
|
39
|
+
"codex",
|
|
40
|
+
"cline"
|
|
41
|
+
],
|
|
42
|
+
"homepage": "https://market-pulse.t3ratech.co.zw",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/t3ratech/market-pulse-mcp.git"
|
|
46
|
+
},
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/t3ratech/market-pulse-mcp/issues"
|
|
49
|
+
},
|
|
50
|
+
"author": "T3raTech Solutions (Pvt) Ltd",
|
|
51
|
+
"files": [
|
|
52
|
+
"src/",
|
|
53
|
+
"agent-skills/",
|
|
54
|
+
".claude-plugin/",
|
|
55
|
+
"README.md",
|
|
56
|
+
"LICENSE",
|
|
57
|
+
"NOTICE"
|
|
58
|
+
],
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"mcpName": "io.github.t3ratech/market-pulse"
|
|
63
|
+
}
|
package/src/client.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// One job: forward a validated tools/call to the Market Pulse MCP endpoint and turn
|
|
2
|
+
// every way that can go wrong into a message a model can act on. The API key is read
|
|
3
|
+
// from configuration and written only into the Authorization header of a request to
|
|
4
|
+
// the configured origin; it appears in no error text and no log line.
|
|
5
|
+
|
|
6
|
+
const MAX_RESPONSE_BYTES = 12 * 1024 * 1024;
|
|
7
|
+
|
|
8
|
+
export class RemoteError extends Error {
|
|
9
|
+
constructor(message, { status = null, code = null } = {}) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.status = status;
|
|
12
|
+
this.code = code;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function createClient({ baseUrl, apiKey, timeoutMs, userAgent, fetchImpl = fetch }) {
|
|
17
|
+
let nextId = 1;
|
|
18
|
+
|
|
19
|
+
async function rpc(method, params) {
|
|
20
|
+
const headers = { "content-type": "application/json", accept: "application/json", "user-agent": userAgent };
|
|
21
|
+
if (apiKey) headers.authorization = `Bearer ${apiKey}`;
|
|
22
|
+
let response;
|
|
23
|
+
try {
|
|
24
|
+
response = await fetchImpl(`${baseUrl}/mcp`, {
|
|
25
|
+
method: "POST",
|
|
26
|
+
headers,
|
|
27
|
+
body: JSON.stringify({ jsonrpc: "2.0", id: nextId++, method, params }),
|
|
28
|
+
signal: AbortSignal.timeout(timeoutMs),
|
|
29
|
+
redirect: "error",
|
|
30
|
+
});
|
|
31
|
+
} catch (error) {
|
|
32
|
+
if (error?.name === "TimeoutError") throw new RemoteError(`Market Pulse did not answer within ${timeoutMs} ms (${baseUrl}). Retry, or raise MARKET_PULSE_TIMEOUT_MS.`);
|
|
33
|
+
throw new RemoteError(`Could not reach Market Pulse at ${baseUrl}: ${error?.cause?.code || error?.message || "network error"}. Check the connection; nothing was changed.`);
|
|
34
|
+
}
|
|
35
|
+
const declared = Number(response.headers.get("content-length"));
|
|
36
|
+
if (Number.isFinite(declared) && declared > MAX_RESPONSE_BYTES) {
|
|
37
|
+
throw new RemoteError(`Market Pulse answered with ${declared} bytes, over the ${MAX_RESPONSE_BYTES}-byte limit. Narrow the query with a filter.`, { status: response.status });
|
|
38
|
+
}
|
|
39
|
+
const text = await response.text();
|
|
40
|
+
if (text.length > MAX_RESPONSE_BYTES) throw new RemoteError("Market Pulse answered with more data than this server will relay. Narrow the query with a filter.", { status: response.status });
|
|
41
|
+
let body;
|
|
42
|
+
try {
|
|
43
|
+
body = JSON.parse(text);
|
|
44
|
+
} catch {
|
|
45
|
+
throw new RemoteError(`Market Pulse answered HTTP ${response.status} with a body that is not JSON.`, { status: response.status });
|
|
46
|
+
}
|
|
47
|
+
if (response.status === 401) throw new RemoteError(body?.error?.message || body?.message || "Market Pulse rejected the API key (unknown, revoked or mistyped). Unset MARKET_PULSE_API_KEY for the free tier.", { status: 401, code: body?.error?.code ?? null });
|
|
48
|
+
if (response.status === 429) throw new RemoteError(body?.message || "Market Pulse daily pull budget is exhausted for this tier. Call pulse_account to see the quota and where to upgrade.", { status: 429, code: "quota_exceeded" });
|
|
49
|
+
if (!response.ok) throw new RemoteError(body?.error?.message || body?.message || `Market Pulse answered HTTP ${response.status}.`, { status: response.status, code: body?.error?.code ?? null });
|
|
50
|
+
if (body?.error) throw new RemoteError(body.error.message || "Market Pulse refused the call.", { status: response.status, code: body.error.code ?? null });
|
|
51
|
+
return body.result;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return {
|
|
55
|
+
callTool: (name, args) => rpc("tools/call", { name, arguments: args }),
|
|
56
|
+
listTools: async () => (await rpc("tools/list", {})).tools,
|
|
57
|
+
};
|
|
58
|
+
}
|
package/src/config.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Environment is parsed once, at startup, and a bad value stops the server with a
|
|
2
|
+
// message naming the variable. A key that is silently ignored would serve the free
|
|
3
|
+
// tier to someone who is paying, and nothing downstream would disagree.
|
|
4
|
+
|
|
5
|
+
export const DEFAULT_BASE_URL = "https://market-pulse.t3ratech.co.zw";
|
|
6
|
+
export const DEFAULT_TIMEOUT_MS = 30000;
|
|
7
|
+
|
|
8
|
+
export class ConfigError extends Error {}
|
|
9
|
+
|
|
10
|
+
function isLoopback(hostname) {
|
|
11
|
+
return hostname === "localhost" || hostname === "127.0.0.1" || hostname === "[::1]";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function loadConfig(env = process.env) {
|
|
15
|
+
const rawBase = (env.MARKET_PULSE_BASE_URL ?? DEFAULT_BASE_URL).trim();
|
|
16
|
+
let url;
|
|
17
|
+
try {
|
|
18
|
+
url = new URL(rawBase);
|
|
19
|
+
} catch {
|
|
20
|
+
throw new ConfigError("MARKET_PULSE_BASE_URL is not a valid URL");
|
|
21
|
+
}
|
|
22
|
+
// The key travels in an Authorization header, so plaintext is refused for any
|
|
23
|
+
// host that is not this machine.
|
|
24
|
+
if (url.protocol !== "https:" && !(url.protocol === "http:" && isLoopback(url.hostname))) {
|
|
25
|
+
throw new ConfigError("MARKET_PULSE_BASE_URL must be https (http is accepted only for localhost)");
|
|
26
|
+
}
|
|
27
|
+
if (url.search || url.hash || url.username || url.password) {
|
|
28
|
+
throw new ConfigError("MARKET_PULSE_BASE_URL must be a bare origin, with no credentials, query or fragment");
|
|
29
|
+
}
|
|
30
|
+
const baseUrl = `${url.protocol}//${url.host}${url.pathname.replace(/\/+$/, "")}`;
|
|
31
|
+
|
|
32
|
+
const rawKey = env.MARKET_PULSE_API_KEY;
|
|
33
|
+
let apiKey = null;
|
|
34
|
+
if (rawKey !== undefined && rawKey.trim() !== "") {
|
|
35
|
+
apiKey = rawKey.trim();
|
|
36
|
+
if (!/^mpk_[A-Za-z0-9_-]{8,}$/.test(apiKey)) {
|
|
37
|
+
throw new ConfigError("MARKET_PULSE_API_KEY is not a Market Pulse key (they start with mpk_). Create one at " + DEFAULT_BASE_URL + "/account or unset the variable to use the free tier");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const rawTimeout = env.MARKET_PULSE_TIMEOUT_MS;
|
|
42
|
+
let timeoutMs = DEFAULT_TIMEOUT_MS;
|
|
43
|
+
if (rawTimeout !== undefined && rawTimeout.trim() !== "") {
|
|
44
|
+
timeoutMs = Number(rawTimeout);
|
|
45
|
+
if (!Number.isInteger(timeoutMs) || timeoutMs < 1000 || timeoutMs > 300000) {
|
|
46
|
+
throw new ConfigError("MARKET_PULSE_TIMEOUT_MS must be an integer between 1000 and 300000");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return { baseUrl, apiKey, timeoutMs };
|
|
50
|
+
}
|