@meltingpixels/harvey-tools 1.0.0 → 1.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/.dockerignore ADDED
@@ -0,0 +1,7 @@
1
+ node_modules
2
+ dist
3
+ .env
4
+ .env.*
5
+ *.md
6
+ .git
7
+ .gitignore
@@ -0,0 +1 @@
1
+ ghu_f1NOi0ex9cASg4lEExLfrINUpgtIN33AUIn3
@@ -0,0 +1 @@
1
+ {"token":"eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtY3AtcmVnaXN0cnkiLCJleHAiOjE3NzM5NjY5NTcsIm5iZiI6MTc3Mzk2NjY1NywiaWF0IjoxNzczOTY2NjU3LCJhdXRoX21ldGhvZCI6ImdpdGh1Yi1hdCIsImF1dGhfbWV0aG9kX3N1YiI6Im1lbHRpbmdwaXhlbHNhaSIsInBlcm1pc3Npb25zIjpbeyJhY3Rpb24iOiJwdWJsaXNoIiwicmVzb3VyY2UiOiJpby5naXRodWIubWVsdGluZ3BpeGVsc2FpLyoifV19.rSZBF27z1B5SgzfIiyW86lxIfciq4HJ_-BsvHjnkU1gYGrcl7ys7xwpvIBZUJq2qG-Ne_gex9Cv2H1w0nBd5Cg","expires_at":1773966957}
package/Dockerfile ADDED
@@ -0,0 +1,20 @@
1
+ FROM node:22-slim AS builder
2
+
3
+ WORKDIR /app
4
+ COPY package.json package-lock.json ./
5
+ RUN npm ci
6
+ COPY tsconfig.json ./
7
+ COPY src ./src
8
+ RUN npx tsc
9
+
10
+ FROM node:22-slim
11
+
12
+ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
13
+ WORKDIR /app
14
+ COPY package.json package-lock.json ./
15
+ RUN npm ci --omit=dev
16
+ RUN npx playwright install --with-deps chromium
17
+ COPY --from=builder /app/dist ./dist
18
+
19
+ EXPOSE 8403
20
+ CMD ["node", "dist/index.js"]
package/LICENSE ADDED
@@ -0,0 +1,216 @@
1
+ The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
2
+
3
+ Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
4
+
5
+ No rights beyond those granted by the applicable original license are conveyed for such contributions.
6
+
7
+ ---
8
+
9
+ Apache License
10
+ Version 2.0, January 2004
11
+ http://www.apache.org/licenses/
12
+
13
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
14
+
15
+ 1. Definitions.
16
+
17
+ "License" shall mean the terms and conditions for use, reproduction,
18
+ and distribution as defined by Sections 1 through 9 of this document.
19
+
20
+ "Licensor" shall mean the copyright owner or entity authorized by
21
+ the copyright owner that is granting the License.
22
+
23
+ "Legal Entity" shall mean the union of the acting entity and all
24
+ other entities that control, are controlled by, or are under common
25
+ control with that entity. For the purposes of this definition,
26
+ "control" means (i) the power, direct or indirect, to cause the
27
+ direction or management of such entity, whether by contract or
28
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
29
+ outstanding shares, or (iii) beneficial ownership of such entity.
30
+
31
+ "You" (or "Your") shall mean an individual or Legal Entity
32
+ exercising permissions granted by this License.
33
+
34
+ "Source" form shall mean the preferred form for making modifications,
35
+ including but not limited to software source code, documentation
36
+ source, and configuration files.
37
+
38
+ "Object" form shall mean any form resulting from mechanical
39
+ transformation or translation of a Source form, including but
40
+ not limited to compiled object code, generated documentation,
41
+ and conversions to other media types.
42
+
43
+ "Work" shall mean the work of authorship, whether in Source or
44
+ Object form, made available under the License, as indicated by a
45
+ copyright notice that is included in or attached to the work
46
+ (an example is provided in the Appendix below).
47
+
48
+ "Derivative Works" shall mean any work, whether in Source or Object
49
+ form, that is based on (or derived from) the Work and for which the
50
+ editorial revisions, annotations, elaborations, or other modifications
51
+ represent, as a whole, an original work of authorship. For the purposes
52
+ of this License, Derivative Works shall not include works that remain
53
+ separable from, or merely link (or bind by name) to the interfaces of,
54
+ the Work and Derivative Works thereof.
55
+
56
+ "Contribution" shall mean any work of authorship, including
57
+ the original version of the Work and any modifications or additions
58
+ to that Work or Derivative Works thereof, that is intentionally
59
+ submitted to the Licensor for inclusion in the Work by the copyright
60
+ owner or by an individual or Legal Entity authorized to submit on behalf
61
+ of the copyright owner. For the purposes of this definition, "submitted"
62
+ means any form of electronic, verbal, or written communication sent
63
+ to the Licensor or its representatives, including but not limited to
64
+ communication on electronic mailing lists, source code control systems,
65
+ and issue tracking systems that are managed by, or on behalf of, the
66
+ Licensor for the purpose of discussing and improving the Work, but
67
+ excluding communication that is conspicuously marked or otherwise
68
+ designated in writing by the copyright owner as "Not a Contribution."
69
+
70
+ "Contributor" shall mean Licensor and any individual or Legal Entity
71
+ on behalf of whom a Contribution has been received by Licensor and
72
+ subsequently incorporated within the Work.
73
+
74
+ 2. Grant of Copyright 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
+ copyright license to reproduce, prepare Derivative Works of,
78
+ publicly display, publicly perform, sublicense, and distribute the
79
+ Work and such Derivative Works in Source or Object form.
80
+
81
+ 3. Grant of Patent License. Subject to the terms and conditions of
82
+ this License, each Contributor hereby grants to You a perpetual,
83
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
84
+ (except as stated in this section) patent license to make, have made,
85
+ use, offer to sell, sell, import, and otherwise transfer the Work,
86
+ where such license applies only to those patent claims licensable
87
+ by such Contributor that are necessarily infringed by their
88
+ Contribution(s) alone or by combination of their Contribution(s)
89
+ with the Work to which such Contribution(s) was submitted. If You
90
+ institute patent litigation against any entity (including a
91
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
92
+ or a Contribution incorporated within the Work constitutes direct
93
+ or contributory patent infringement, then any patent licenses
94
+ granted to You under this License for that Work shall terminate
95
+ as of the date such litigation is filed.
96
+
97
+ 4. Redistribution. You may reproduce and distribute copies of the
98
+ Work or Derivative Works thereof in any medium, with or without
99
+ modifications, and in Source or Object form, provided that You
100
+ meet the following conditions:
101
+
102
+ (a) You must give any other recipients of the Work or
103
+ Derivative Works a copy of this License; and
104
+
105
+ (b) You must cause any modified files to carry prominent notices
106
+ stating that You changed the files; and
107
+
108
+ (c) You must retain, in the Source form of any Derivative Works
109
+ that You distribute, all copyright, patent, trademark, and
110
+ attribution notices from the Source form of the Work,
111
+ excluding those notices that do not pertain to any part of
112
+ the Derivative Works; and
113
+
114
+ (d) If the Work includes a "NOTICE" text file as part of its
115
+ distribution, then any Derivative Works that You distribute must
116
+ include a readable copy of the attribution notices contained
117
+ within such NOTICE file, excluding those notices that do not
118
+ pertain to any part of the Derivative Works, in at least one
119
+ of the following places: within a NOTICE text file distributed
120
+ as part of the Derivative Works; within the Source form or
121
+ documentation, if provided along with the Derivative Works; or,
122
+ within a display generated by the Derivative Works, if and
123
+ wherever such third-party notices normally appear. The contents
124
+ of the NOTICE file are for informational purposes only and
125
+ do not modify the License. You may add Your own attribution
126
+ notices within Derivative Works that You distribute, alongside
127
+ or as an addendum to the NOTICE text from the Work, provided
128
+ that such additional attribution notices cannot be construed
129
+ as modifying the License.
130
+
131
+ You may add Your own copyright statement to Your modifications and
132
+ may provide additional or different license terms and conditions
133
+ for use, reproduction, or distribution of Your modifications, or
134
+ for any such Derivative Works as a whole, provided Your use,
135
+ reproduction, and distribution of the Work otherwise complies with
136
+ the conditions stated in this License.
137
+
138
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
139
+ any Contribution intentionally submitted for inclusion in the Work
140
+ by You to the Licensor shall be under the terms and conditions of
141
+ this License, without any additional terms or conditions.
142
+ Notwithstanding the above, nothing herein shall supersede or modify
143
+ the terms of any separate license agreement you may have executed
144
+ with Licensor regarding such Contributions.
145
+
146
+ 6. Trademarks. This License does not grant permission to use the trade
147
+ names, trademarks, service marks, or product names of the Licensor,
148
+ except as required for reasonable and customary use in describing the
149
+ origin of the Work and reproducing the content of the NOTICE file.
150
+
151
+ 7. Disclaimer of Warranty. Unless required by applicable law or
152
+ agreed to in writing, Licensor provides the Work (and each
153
+ Contributor provides its Contributions) on an "AS IS" BASIS,
154
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
155
+ implied, including, without limitation, any warranties or conditions
156
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157
+ PARTICULAR PURPOSE. You are solely responsible for determining the
158
+ appropriateness of using or redistributing the Work and assume any
159
+ risks associated with Your exercise of permissions under this License.
160
+
161
+ 8. Limitation of Liability. In no event and under no legal theory,
162
+ whether in tort (including negligence), contract, or otherwise,
163
+ unless required by applicable law (such as deliberate and grossly
164
+ negligent acts) or agreed to in writing, shall any Contributor be
165
+ liable to You for damages, including any direct, indirect, special,
166
+ incidental, or consequential damages of any character arising as a
167
+ result of this License or out of the use or inability to use the
168
+ Work (including but not limited to damages for loss of goodwill,
169
+ work stoppage, computer failure or malfunction, or any and all
170
+ other commercial damages or losses), even if such Contributor
171
+ has been advised of the possibility of such damages.
172
+
173
+ 9. Accepting Warranty or Additional Liability. While redistributing
174
+ the Work or Derivative Works thereof, You may choose to offer,
175
+ and charge a fee for, acceptance of support, warranty, indemnity,
176
+ or other liability obligations and/or rights consistent with this
177
+ License. However, in accepting such obligations, You may act only
178
+ on Your own behalf and on Your sole responsibility, not on behalf
179
+ of any other Contributor, and only if You agree to indemnify,
180
+ defend, and hold each Contributor harmless for any liability
181
+ incurred by, or claims asserted against, such Contributor by reason
182
+ of your accepting any such warranty or additional liability.
183
+
184
+ END OF TERMS AND CONDITIONS
185
+
186
+ ---
187
+
188
+ MIT License
189
+
190
+ Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
191
+
192
+ Permission is hereby granted, free of charge, to any person obtaining a copy
193
+ of this software and associated documentation files (the "Software"), to deal
194
+ in the Software without restriction, including without limitation the rights
195
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
196
+ copies of the Software, and to permit persons to whom the Software is
197
+ furnished to do so, subject to the following conditions:
198
+
199
+ The above copyright notice and this permission notice shall be included in all
200
+ copies or substantial portions of the Software.
201
+
202
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
203
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
204
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
205
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
206
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
207
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
208
+ SOFTWARE.
209
+
210
+ ---
211
+
212
+ Creative Commons Attribution 4.0 International (CC-BY-4.0)
213
+
214
+ Documentation in this project (excluding specifications) is licensed under
215
+ CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
216
+ the full license text.
package/README.md ADDED
@@ -0,0 +1,153 @@
1
+ # MCP Registry
2
+
3
+ The MCP registry provides MCP clients with a list of MCP servers, like an app store for MCP servers.
4
+
5
+ [**📤 Publish my MCP server**](docs/modelcontextprotocol-io/quickstart.mdx) | [**⚡️ Live API docs**](https://registry.modelcontextprotocol.io/docs) | [**👀 Ecosystem vision**](docs/design/ecosystem-vision.md) | 📖 **[Full documentation](./docs)**
6
+
7
+ ## Development Status
8
+
9
+ **2025-10-24 update**: The Registry API has entered an **API freeze (v0.1)** 🎉. For the next month or more, the API will remain stable with no breaking changes, allowing integrators to confidently implement support. This freeze applies to v0.1 while development continues on v0. We'll use this period to validate the API in real-world integrations and gather feedback to shape v1 for general availability. Thank you to everyone for your contributions and patience—your involvement has been key to getting us here!
10
+
11
+ **2025-09-08 update**: The registry has launched in preview 🎉 ([announcement blog post](https://blog.modelcontextprotocol.io/posts/2025-09-08-mcp-registry-preview/)). While the system is now more stable, this is still a preview release and breaking changes or data resets may occur. A general availability (GA) release will follow later. We'd love your feedback in [GitHub discussions](https://github.com/modelcontextprotocol/registry/discussions/new?category=ideas) or in the [#registry-dev Discord](https://discord.com/channels/1358869848138059966/1369487942862504016) ([joining details here](https://modelcontextprotocol.io/community/communication)).
12
+
13
+ Current key maintainers:
14
+ - **Adam Jones** (Anthropic) [@domdomegg](https://github.com/domdomegg)
15
+ - **Tadas Antanavicius** (PulseMCP) [@tadasant](https://github.com/tadasant)
16
+ - **Toby Padilla** (GitHub) [@toby](https://github.com/toby)
17
+ - **Radoslav (Rado) Dimitrov** (Stacklok) [@rdimitrov](https://github.com/rdimitrov)
18
+
19
+ ## Contributing
20
+
21
+ We use multiple channels for collaboration - see [modelcontextprotocol.io/community/communication](https://modelcontextprotocol.io/community/communication).
22
+
23
+ Often (but not always) ideas flow through this pipeline:
24
+
25
+ - **[Discord](https://modelcontextprotocol.io/community/communication)** - Real-time community discussions
26
+ - **[Discussions](https://github.com/modelcontextprotocol/registry/discussions)** - Propose and discuss product/technical requirements
27
+ - **[Issues](https://github.com/modelcontextprotocol/registry/issues)** - Track well-scoped technical work
28
+ - **[Pull Requests](https://github.com/modelcontextprotocol/registry/pulls)** - Contribute work towards issues
29
+
30
+ ### Quick start:
31
+
32
+ #### Pre-requisites
33
+
34
+ - **Docker**
35
+ - **Go 1.24.x**
36
+ - **ko** - Container image builder for Go ([installation instructions](https://ko.build/install/))
37
+ - **golangci-lint v2.4.0**
38
+
39
+ #### Running the server
40
+
41
+ ```bash
42
+ # Start full development environment
43
+ make dev-compose
44
+ ```
45
+
46
+ This starts the registry at [`localhost:8080`](http://localhost:8080) with PostgreSQL. The database uses ephemeral storage and is reset each time you restart the containers, ensuring a clean state for development and testing.
47
+
48
+ **Note:** The registry uses [ko](https://ko.build) to build container images. The `make dev-compose` command automatically builds the registry image with ko and loads it into your local Docker daemon before starting the services.
49
+
50
+ By default, the registry seeds from the production API with a filtered subset of servers (to keep startup fast). This ensures your local environment mirrors production behavior and all seed data passes validation. For offline development you can seed from a file without validation with `MCP_REGISTRY_SEED_FROM=data/seed.json MCP_REGISTRY_ENABLE_REGISTRY_VALIDATION=false make dev-compose`.
51
+
52
+ The setup can be configured with environment variables in [docker-compose.yml](./docker-compose.yml) - see [.env.example](./.env.example) for a reference.
53
+
54
+ <details>
55
+ <summary>Alternative: Running a pre-built Docker image</summary>
56
+
57
+ Pre-built Docker images are automatically published to GitHub Container Registry:
58
+
59
+ ```bash
60
+ # Run latest stable release
61
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:latest
62
+
63
+ # Run latest from main branch (continuous deployment)
64
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main
65
+
66
+ # Run specific release version
67
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:v1.0.0
68
+
69
+ # Run development build from main branch
70
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main-20250906-abc123d
71
+ ```
72
+
73
+ **Available tags:**
74
+ - **Releases**: `latest`, `v1.0.0`, `v1.1.0`, etc.
75
+ - **Continuous**: `main` (latest main branch build)
76
+ - **Development**: `main-<date>-<sha>` (specific commit builds)
77
+
78
+ </details>
79
+
80
+ #### Publishing a server
81
+
82
+ To publish a server, we've built a simple CLI. You can use it with:
83
+
84
+ ```bash
85
+ # Build the latest CLI
86
+ make publisher
87
+
88
+ # Use it!
89
+ ./bin/mcp-publisher --help
90
+ ```
91
+
92
+ See [the publisher guide](./docs/modelcontextprotocol-io/quickstart.mdx) for more details.
93
+
94
+ #### Other commands
95
+
96
+ ```bash
97
+ # Run lint, unit tests and integration tests
98
+ make check
99
+ ```
100
+
101
+ There are also a few more helpful commands for development. Run `make help` to learn more, or look in [Makefile](./Makefile).
102
+
103
+ <!--
104
+ For Claude and other AI tools: Always prefer make targets over custom commands where possible.
105
+ -->
106
+
107
+ ## Architecture
108
+
109
+ ### Project Structure
110
+
111
+ ```
112
+ ├── cmd/ # Application entry points
113
+ │ └── publisher/ # Server publishing tool
114
+ ├── data/ # Seed data
115
+ ├── deploy/ # Deployment configuration (Pulumi)
116
+ ├── docs/ # Documentation
117
+ ├── internal/ # Private application code
118
+ │ ├── api/ # HTTP handlers and routing
119
+ │ ├── auth/ # Authentication (GitHub OAuth, JWT, namespace blocking)
120
+ │ ├── config/ # Configuration management
121
+ │ ├── database/ # Data persistence (PostgreSQL)
122
+ │ ├── service/ # Business logic
123
+ │ ├── telemetry/ # Metrics and monitoring
124
+ │ └── validators/ # Input validation
125
+ ├── pkg/ # Public packages
126
+ │ ├── api/ # API types and structures
127
+ │ │ └── v0/ # Version 0 API types
128
+ │ └── model/ # Data models for server.json
129
+ ├── scripts/ # Development and testing scripts
130
+ ├── tests/ # Integration tests
131
+ └── tools/ # CLI tools and utilities
132
+ └── validate-*.sh # Schema validation tools
133
+ ```
134
+
135
+ ### Authentication
136
+
137
+ Publishing supports multiple authentication methods:
138
+ - **GitHub OAuth** - For publishing by logging into GitHub
139
+ - **GitHub OIDC** - For publishing from GitHub Actions
140
+ - **DNS verification** - For proving ownership of a domain and its subdomains
141
+ - **HTTP verification** - For proving ownership of a domain
142
+
143
+ The registry validates namespace ownership when publishing. E.g. to publish...:
144
+ - `io.github.domdomegg/my-cool-mcp` you must login to GitHub as `domdomegg`, or be in a GitHub Action on domdomegg's repos
145
+ - `me.adamjones/my-cool-mcp` you must prove ownership of `adamjones.me` via DNS or HTTP challenge
146
+
147
+ ## Community Projects
148
+
149
+ Check out [community projects](docs/community-projects.md) to explore notable registry-related work created by the community.
150
+
151
+ ## More documentation
152
+
153
+ See the [documentation](./docs) for more details if your question has not been answered here!
package/glama.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://glama.ai/mcp/schemas/server.json",
3
+ "maintainers": ["jdiamond"]
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltingpixels/harvey-tools",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "x402-paid MCP server for web scraping, code review, content generation, and analysis. Pay-per-call USDC on Solana.",
5
5
  "type": "module",
6
6
  "mcpName": "io.github.meltingpixelsai/harvey-tools",
package/server.json CHANGED
@@ -1,14 +1,37 @@
1
1
  {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
2
3
  "name": "io.github.meltingpixelsai/harvey-tools",
3
- "description": "Web scraping, code review, content generation, and analysis tools for AI agents. Pay-per-call USDC.",
4
+ "description": "Web scraping, code review, content generation, and analysis tools. Pay-per-call USDC.",
5
+ "repository": {
6
+ "url": "https://github.com/meltingpixelsai/harvey-tools",
7
+ "source": "github"
8
+ },
9
+ "version": "1.1.0",
4
10
  "packages": [
5
11
  {
6
12
  "registryType": "npm",
7
13
  "identifier": "@meltingpixels/harvey-tools",
14
+ "version": "1.1.0",
8
15
  "transport": {
9
16
  "type": "streamable-http",
10
17
  "url": "https://tools.rugslayer.com/mcp"
11
- }
18
+ },
19
+ "environmentVariables": [
20
+ {
21
+ "description": "xAI Grok API key for LLM-powered tools",
22
+ "isRequired": true,
23
+ "format": "string",
24
+ "isSecret": true,
25
+ "name": "XAI_API_KEY"
26
+ },
27
+ {
28
+ "description": "Solana wallet address for receiving USDC payments",
29
+ "isRequired": false,
30
+ "format": "string",
31
+ "isSecret": false,
32
+ "name": "PAYMENT_WALLET"
33
+ }
34
+ ]
12
35
  }
13
36
  ],
14
37
  "_meta": {
@@ -22,7 +45,8 @@
22
45
  "extract_structured_data": "$0.02",
23
46
  "review_code": "$0.03",
24
47
  "generate_content": "$0.05",
25
- "analyze_sentiment": "$0.01"
48
+ "analyze_sentiment": "$0.01",
49
+ "search_web": "$0.01"
26
50
  },
27
51
  "free_tools": ["list_tools", "health"]
28
52
  }
package/src/config.ts CHANGED
@@ -24,6 +24,7 @@ export const config = {
24
24
  review_code: 0.03,
25
25
  generate_content: 0.05,
26
26
  analyze_sentiment: 0.01,
27
+ search_web: 0.01,
27
28
  },
28
29
 
29
30
  // Browser config
package/src/discovery.ts CHANGED
@@ -10,12 +10,14 @@ export function registerDiscoveryRoutes(app: Hono): void {
10
10
  });
11
11
  });
12
12
 
13
- app.get("/.well-known/agent-card.json", (c) => {
14
- return c.json(AGENT_CARD, 200, {
13
+ const agentCardHandler = (c: any) =>
14
+ c.json(AGENT_CARD, 200, {
15
15
  "Cache-Control": "public, max-age=3600",
16
16
  "Access-Control-Allow-Origin": "*",
17
17
  });
18
- });
18
+ app.get("/.well-known/agent-card.json", agentCardHandler);
19
+ app.get("/.well-known/agent.json", agentCardHandler);
20
+
19
21
 
20
22
  app.get("/.well-known/mcp.json", (c) => {
21
23
  return c.json(MCP_CARD, 200, {
@@ -23,11 +25,17 @@ export function registerDiscoveryRoutes(app: Hono): void {
23
25
  "Access-Control-Allow-Origin": "*",
24
26
  });
25
27
  });
26
- }
27
28
 
29
+ app.get("/.well-known/mcp/server-card.json", (c) => {
30
+ return c.json(MCP_CARD, 200, {
31
+ "Cache-Control": "public, max-age=3600",
32
+ "Access-Control-Allow-Origin": "*",
33
+ });
34
+ });
35
+ }
28
36
  // ── Static Content ────────────────────────────────────────────
29
37
 
30
- const LLMS_TXT = `# Harvey Tools - General-Purpose Agent Tools MCP Server
38
+ const LLMS_TXT = `# Zero Core Tools - General-Purpose Agent Tools MCP Server
31
39
 
32
40
  > MCP server for AI agents. Web scraping, screenshots, structured data extraction, code review, content generation, sentiment analysis.
33
41
  > Pay per call with USDC via x402 micropayments. No account needed.
@@ -42,6 +50,7 @@ const LLMS_TXT = `# Harvey Tools - General-Purpose Agent Tools MCP Server
42
50
  - [review_code](https://tools.rugslayer.com/mcp): Security + quality code review ($0.03)
43
51
  - [generate_content](https://tools.rugslayer.com/mcp): Generate blog posts, docs, descriptions ($0.05)
44
52
  - [analyze_sentiment](https://tools.rugslayer.com/mcp): Sentiment analysis + entity extraction ($0.01)
53
+ - [search_web](https://tools.rugslayer.com/mcp): Search the web via Google ($0.01)
45
54
 
46
55
  ## Connection
47
56
  - [MCP Endpoint](https://tools.rugslayer.com/mcp): Connect directly via MCP
@@ -58,25 +67,38 @@ const LLMS_TXT = `# Harvey Tools - General-Purpose Agent Tools MCP Server
58
67
  - review_code: $0.03 USDC per call
59
68
  - generate_content: $0.05 USDC per call
60
69
  - analyze_sentiment: $0.01 USDC per call
70
+ - search_web: $0.01 USDC per call
61
71
  `;
62
72
 
63
73
  const AGENT_CARD = {
64
- name: "Harvey Tools",
74
+ name: "Zero Core Tools",
65
75
  description:
66
76
  "MCP server for AI agents providing web scraping, screenshots, structured data extraction, code review, content generation, and sentiment analysis. Pay per call with USDC via x402.",
67
- url: "https://tools.rugslayer.com/mcp",
68
77
  version: "1.0.0",
78
+ supportedInterfaces: [
79
+ {
80
+ url: "https://tools.rugslayer.com/mcp",
81
+ protocolBinding: "HTTP+JSON",
82
+ protocolVersion: "0.3",
83
+ },
84
+ ],
69
85
  provider: {
70
86
  organization: "MeltingPixels",
71
87
  url: "https://rugslayer.com",
72
88
  },
89
+ iconUrl: "https://rugslayer.com/icon.svg",
73
90
  capabilities: {
74
91
  streaming: false,
75
92
  pushNotifications: false,
76
93
  stateTransitionHistory: false,
77
94
  },
78
- authentication: {
79
- schemes: ["x402"],
95
+ securitySchemes: {
96
+ x402: {
97
+ httpSecurityScheme: {
98
+ scheme: "x402",
99
+ bearerFormat: "USDC micropayment on Solana",
100
+ },
101
+ },
80
102
  },
81
103
  defaultInputModes: ["application/json"],
82
104
  defaultOutputModes: ["application/json"],
@@ -135,13 +157,22 @@ const AGENT_CARD = {
135
157
  inputModes: ["application/json"],
136
158
  outputModes: ["application/json"],
137
159
  },
160
+ {
161
+ id: "web-search",
162
+ name: "Web Search",
163
+ description: "Search the web via Google and return organic results with titles, links, and snippets.",
164
+ tags: ["search", "google", "web", "serper"],
165
+ examples: ["Search for recent AI agent news", "Find documentation for this library"],
166
+ inputModes: ["application/json"],
167
+ outputModes: ["application/json"],
168
+ },
138
169
  ],
139
170
  };
140
171
 
141
172
  const MCP_CARD = {
142
173
  mcp_version: "2025-11-25",
143
174
  name: "harvey-tools",
144
- display_name: "Harvey Tools - General-Purpose Agent Tools",
175
+ display_name: "Zero Core Tools - General-Purpose Agent Tools",
145
176
  description:
146
177
  "MCP server for AI agents. Web scraping, screenshots, structured data extraction, code review, content generation, and sentiment analysis. Pay per call with USDC via x402.",
147
178
  version: "1.0.0",
@@ -160,6 +191,7 @@ const MCP_CARD = {
160
191
  review_code: "$0.03",
161
192
  generate_content: "$0.05",
162
193
  analyze_sentiment: "$0.01",
194
+ search_web: "$0.01",
163
195
  },
164
196
  payment_methods: ["x402_usdc_solana"],
165
197
  },
@@ -262,6 +294,19 @@ const MCP_CARD = {
262
294
  },
263
295
  },
264
296
  },
297
+ {
298
+ name: "search_web",
299
+ description: "Search the web via Google. Returns organic results with titles, links, and snippets.",
300
+ price: "$0.01 USDC",
301
+ input_schema: {
302
+ type: "object",
303
+ required: ["query"],
304
+ properties: {
305
+ query: { type: "string", description: "Search query" },
306
+ num_results: { type: "number", description: "Number of results (default: 10, max: 50)" },
307
+ },
308
+ },
309
+ },
265
310
  ],
266
311
  install: {
267
312
  npm: "npx -y @meltingpixels/harvey-tools",
@@ -272,6 +317,6 @@ const MCP_CARD = {
272
317
  env: {},
273
318
  },
274
319
  },
275
- categories: ["web-scraping", "code-review", "content-generation", "analysis"],
276
- tags: ["scraping", "playwright", "ai", "code-review", "content", "sentiment", "x402", "usdc"],
320
+ categories: ["web-scraping", "code-review", "content-generation", "analysis", "web-search"],
321
+ tags: ["scraping", "playwright", "ai", "code-review", "content", "sentiment", "search", "x402", "usdc"],
277
322
  };
package/src/index.ts CHANGED
@@ -5,10 +5,12 @@ import { createMcpPaidHandler } from "mcpay/handler";
5
5
  import { z } from "zod";
6
6
  import { config } from "./config.js";
7
7
  import { registerDiscoveryRoutes } from "./discovery.js";
8
+ import { landingHtml, devHtml } from "./landing.js";
8
9
  import { scrapeUrl, screenshotUrl, extractStructuredData } from "./tools/scraping.js";
9
10
  import { reviewCode } from "./tools/code-review.js";
10
11
  import { generateContent } from "./tools/content.js";
11
12
  import { analyzeSentiment } from "./tools/sentiment.js";
13
+ import { searchWeb } from "./tools/search.js";
12
14
 
13
15
  // ── Shared tool callback helpers ─────────────────────────────
14
16
 
@@ -39,6 +41,7 @@ function listTools() {
39
41
  { name: "review_code", description: "Security + quality code review", price: "$0.03" },
40
42
  { name: "generate_content", description: "Generate blog posts, docs, descriptions", price: "$0.05" },
41
43
  { name: "analyze_sentiment", description: "Sentiment analysis + entity extraction", price: "$0.01" },
44
+ { name: "search_web", description: "Search the web via Google, return organic results", price: "$0.01" },
42
45
  ],
43
46
  };
44
47
  }
@@ -56,7 +59,7 @@ function health() {
56
59
  facilitator: config.payment.facilitator,
57
60
  method: "x402",
58
61
  },
59
- capabilities: ["web-scraping", "screenshots", "structured-extraction", "code-review", "content-generation", "sentiment-analysis"],
62
+ capabilities: ["web-scraping", "screenshots", "structured-extraction", "code-review", "content-generation", "sentiment-analysis", "web-search"],
60
63
  };
61
64
  }
62
65
 
@@ -69,14 +72,14 @@ function health() {
69
72
  function registerFreeTools(server: any): void {
70
73
  server.tool(
71
74
  "list_tools",
72
- "List all available Harvey Tools with pricing and input requirements. Use this for discovery.",
75
+ "List all available Zero Core Tools with pricing and input requirements. Use this for discovery.",
73
76
  {},
74
77
  async () => toolResult(listTools())
75
78
  );
76
79
 
77
80
  server.tool(
78
81
  "health",
79
- "Check Harvey Tools server status, uptime, and payment network configuration.",
82
+ "Check Zero Core Tools server status, uptime, and payment network configuration.",
80
83
  {},
81
84
  async () => toolResult(health())
82
85
  );
@@ -208,6 +211,26 @@ const paidHandler = createMcpPaidHandler(
208
211
  }
209
212
  }
210
213
  );
214
+
215
+ // ── Web search ──
216
+
217
+ server.paidTool(
218
+ "search_web",
219
+ "Search the web via Google and return organic results with titles, links, and snippets. Optionally returns answer box if available.",
220
+ "$0.01",
221
+ {
222
+ query: z.string().min(1).describe("Search query"),
223
+ num_results: z.number().min(1).max(50).optional().describe("Number of results to return (default: 10)"),
224
+ },
225
+ {},
226
+ async ({ query, num_results }: { query: string; num_results?: number }) => {
227
+ try {
228
+ return toolResult(await searchWeb(query, num_results ?? 10));
229
+ } catch (err) {
230
+ return toolError(err);
231
+ }
232
+ }
233
+ );
211
234
  },
212
235
  {
213
236
  facilitator: {
@@ -240,6 +263,10 @@ app.get("/pricing", (c) => c.json(listTools()));
240
263
  // Agent discovery routes
241
264
  registerDiscoveryRoutes(app);
242
265
 
266
+ // Landing pages for human visitors
267
+ app.get("/", (c) => c.html(landingHtml()));
268
+ app.get("/dev", (c) => c.html(devHtml()));
269
+
243
270
  // MCP handler — x402 only (no API key auth needed)
244
271
  app.all("*", async (c) => {
245
272
  return paidHandler(c.req.raw);
@@ -248,7 +275,7 @@ app.all("*", async (c) => {
248
275
  // ── Start ────────────────────────────────────────────────────
249
276
 
250
277
  serve({ fetch: app.fetch, port: config.port }, () => {
251
- console.log(`Harvey Tools MCP server running on port ${config.port}`);
278
+ console.log(`Zero Core Tools MCP server running on port ${config.port}`);
252
279
  console.log(` MCP endpoint: http://localhost:${config.port}/`);
253
280
  console.log(` Health: http://localhost:${config.port}/health`);
254
281
  console.log(` Pricing: http://localhost:${config.port}/pricing`);
package/src/landing.ts ADDED
@@ -0,0 +1,213 @@
1
+ // ── Landing pages for Harvey Tools ──────────────────────────
2
+
3
+ const SERVER = {
4
+ name: "HARVEY TOOLS",
5
+ slug: "harvey-tools",
6
+ tagline: "General-purpose tools for autonomous agents",
7
+ url: "https://tools.rugslayer.com",
8
+ color: "#00d4ff",
9
+ colorDim: "#00a8cc",
10
+ npm: "@meltingpixels/harvey-tools",
11
+ github: "https://github.com/meltingpixelsai/harvey-tools",
12
+ tools: [
13
+ { name: "list_tools", desc: "List all tools with pricing", price: "FREE" },
14
+ { name: "health", desc: "Server status and payment config", price: "FREE" },
15
+ { name: "scrape_url", desc: "Scrape any URL, return cleaned text", price: "$0.005" },
16
+ { name: "screenshot_url", desc: "Full-page screenshot as base64 PNG", price: "$0.005" },
17
+ { name: "extract_structured_data", desc: "Scrape URL + AI extract structured JSON", price: "$0.02" },
18
+ { name: "review_code", desc: "Security + quality code review", price: "$0.03" },
19
+ { name: "generate_content", desc: "Generate blog posts, docs, descriptions", price: "$0.05" },
20
+ { name: "analyze_sentiment", desc: "Sentiment analysis + entity extraction", price: "$0.01" },
21
+ ],
22
+ };
23
+
24
+ function baseStyles(color: string): string {
25
+ return `
26
+ *{margin:0;padding:0;box-sizing:border-box}
27
+ @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
28
+ body{
29
+ background:#0a0a0f;
30
+ color:#c0c0c0;
31
+ font-family:'JetBrains Mono',monospace;
32
+ min-height:100vh;
33
+ overflow-x:hidden;
34
+ }
35
+ .grid-overlay{
36
+ position:fixed;top:0;left:0;width:100%;height:100%;
37
+ background-image:
38
+ linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),
39
+ linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);
40
+ background-size:60px 60px;
41
+ animation:gridShift 20s linear infinite;
42
+ pointer-events:none;z-index:0;
43
+ }
44
+ @keyframes gridShift{
45
+ 0%{transform:translate(0,0)}
46
+ 100%{transform:translate(60px,60px)}
47
+ }
48
+ @keyframes glow{
49
+ 0%,100%{text-shadow:0 0 20px ${color}40,0 0 40px ${color}20}
50
+ 50%{text-shadow:0 0 30px ${color}60,0 0 60px ${color}30}
51
+ }
52
+ @keyframes blink{0%,100%{opacity:1}50%{opacity:0}}
53
+ @keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
54
+ .cursor{
55
+ display:inline-block;width:10px;height:1.1em;
56
+ background:${color};vertical-align:text-bottom;
57
+ animation:blink 1s step-end infinite;margin-left:4px;
58
+ }
59
+ a{color:${color};text-decoration:none}
60
+ a:hover{text-decoration:underline}
61
+ `;
62
+ }
63
+
64
+ export function landingHtml(): string {
65
+ const { name, tagline, color, tools } = SERVER;
66
+ return `<!DOCTYPE html>
67
+ <html lang="en">
68
+ <head>
69
+ <meta charset="utf-8"/>
70
+ <meta name="viewport" content="width=device-width,initial-scale=1"/>
71
+ <title>${name} - MCP Server</title>
72
+ <meta name="description" content="${tagline}. x402-paid MCP server for AI agents."/>
73
+ <style>${baseStyles(color)}
74
+ .container{
75
+ position:relative;z-index:1;
76
+ display:flex;flex-direction:column;align-items:center;justify-content:center;
77
+ min-height:100vh;padding:2rem;
78
+ }
79
+ .server-name{
80
+ font-size:clamp(2rem,6vw,4rem);font-weight:700;
81
+ color:${color};letter-spacing:0.15em;
82
+ animation:glow 3s ease-in-out infinite;
83
+ margin-bottom:0.5rem;
84
+ }
85
+ .tagline{
86
+ font-size:clamp(0.85rem,2vw,1.1rem);
87
+ color:#888;margin-bottom:2.5rem;
88
+ }
89
+ .terminal{
90
+ background:#0d0d14;border:1px solid #1a1a2e;
91
+ border-radius:8px;padding:1.5rem 2rem;
92
+ max-width:520px;width:100%;
93
+ animation:fadeIn 0.6s ease-out;
94
+ }
95
+ .terminal-line{
96
+ display:flex;gap:1rem;margin:0.35rem 0;
97
+ font-size:0.85rem;line-height:1.6;
98
+ }
99
+ .terminal-label{color:#555}
100
+ .terminal-value{color:#e0e0e0}
101
+ .terminal-value.ok{color:${color}}
102
+ .mcp-note{
103
+ margin-top:2rem;font-size:0.8rem;
104
+ color:#555;text-align:center;
105
+ }
106
+ .dev-link{
107
+ margin-top:1.5rem;font-size:0.8rem;
108
+ color:#444;
109
+ }
110
+ .dev-link a{color:#666}
111
+ .dev-link a:hover{color:${color}}
112
+ .footer{
113
+ margin-top:2rem;font-size:0.7rem;color:#333;
114
+ }
115
+ </style>
116
+ </head>
117
+ <body>
118
+ <div class="grid-overlay"></div>
119
+ <div class="container">
120
+ <div class="server-name">${name}</div>
121
+ <div class="tagline">${tagline}<span class="cursor"></span></div>
122
+ <div class="terminal">
123
+ <div class="terminal-line"><span class="terminal-label">server</span><span class="terminal-value">${SERVER.slug}</span></div>
124
+ <div class="terminal-line"><span class="terminal-label">version</span><span class="terminal-value">1.0.0</span></div>
125
+ <div class="terminal-line"><span class="terminal-label">protocol</span><span class="terminal-value">MCP + x402</span></div>
126
+ <div class="terminal-line"><span class="terminal-label">payment</span><span class="terminal-value">USDC on Solana</span></div>
127
+ <div class="terminal-line"><span class="terminal-label">tools</span><span class="terminal-value">${tools.length} available</span></div>
128
+ <div class="terminal-line"><span class="terminal-label">status</span><span class="terminal-value ok">ONLINE</span></div>
129
+ </div>
130
+ <div class="mcp-note">This endpoint serves AI agents via the Model Context Protocol.</div>
131
+ <div class="dev-link"><a href="/dev">Are you a developer? View tools & connect &rarr;</a></div>
132
+ <div class="footer">Built by <a href="https://meltingpixels.com" style="color:#444">MeltingPixels</a></div>
133
+ </div>
134
+ </body>
135
+ </html>`;
136
+ }
137
+
138
+ export function devHtml(): string {
139
+ const { name, slug, tagline, color, colorDim, url, npm, github, tools } = SERVER;
140
+ const toolRows = tools
141
+ .map(
142
+ (t) =>
143
+ `<tr><td class="tool-name">${t.name}</td><td class="tool-desc">${t.desc}</td><td class="tool-price${t.price === "FREE" ? " free" : ""}">${t.price === "FREE" ? "FREE" : t.price + " USDC"}</td></tr>`
144
+ )
145
+ .join("\n ");
146
+
147
+ return `<!DOCTYPE html>
148
+ <html lang="en">
149
+ <head>
150
+ <meta charset="utf-8"/>
151
+ <meta name="viewport" content="width=device-width,initial-scale=1"/>
152
+ <title>${name} - Developer Docs</title>
153
+ <meta name="description" content="${tagline}. Tool reference and MCP connect instructions."/>
154
+ <style>${baseStyles(color)}
155
+ .container{
156
+ position:relative;z-index:1;
157
+ max-width:700px;margin:0 auto;padding:3rem 1.5rem;
158
+ }
159
+ .back{font-size:0.8rem;margin-bottom:2rem;display:inline-block;color:#555}
160
+ .back:hover{color:${color}}
161
+ h1{color:${color};font-size:1.6rem;margin-bottom:0.3rem}
162
+ .subtitle{color:#888;font-size:0.9rem;margin-bottom:2rem}
163
+ h2{color:#e0e0e0;font-size:1rem;margin:2rem 0 0.8rem;border-bottom:1px solid #1a1a2e;padding-bottom:0.4rem}
164
+ table{width:100%;border-collapse:collapse;font-size:0.8rem}
165
+ th{text-align:left;color:#555;padding:0.4rem 0.6rem;border-bottom:1px solid #1a1a2e;font-weight:400}
166
+ td{padding:0.4rem 0.6rem;border-bottom:1px solid #111}
167
+ .tool-name{color:${color};white-space:nowrap}
168
+ .tool-desc{color:#999}
169
+ .tool-price{color:#e0e0e0;white-space:nowrap;text-align:right}
170
+ .tool-price.free{color:${colorDim}}
171
+ .code-block{
172
+ background:#0d0d14;border:1px solid #1a1a2e;border-radius:6px;
173
+ padding:1rem 1.2rem;font-size:0.8rem;color:#e0e0e0;
174
+ overflow-x:auto;margin:0.5rem 0;white-space:pre;
175
+ }
176
+ .links{display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.5rem;font-size:0.8rem}
177
+ .footer{margin-top:3rem;font-size:0.7rem;color:#333;text-align:center}
178
+ </style>
179
+ </head>
180
+ <body>
181
+ <div class="grid-overlay"></div>
182
+ <div class="container">
183
+ <a class="back" href="/">&larr; Back</a>
184
+ <h1>${name}</h1>
185
+ <div class="subtitle">${tagline}</div>
186
+
187
+ <h2>Tools</h2>
188
+ <table>
189
+ <tr><th>Tool</th><th>Description</th><th style="text-align:right">Price</th></tr>
190
+ ${toolRows}
191
+ </table>
192
+
193
+ <h2>Connect via MCP</h2>
194
+ <div class="code-block">claude mcp add ${slug} --transport http ${url}</div>
195
+
196
+ <h2>Install via npm</h2>
197
+ <div class="code-block">npm install ${npm}</div>
198
+
199
+ <h2>Links</h2>
200
+ <div class="links">
201
+ <a href="${github}">GitHub</a>
202
+ <a href="https://www.npmjs.com/package/${npm}">npm</a>
203
+ <a href="/llms.txt">llms.txt</a>
204
+ <a href="/health">Health</a>
205
+ <a href="/pricing">Pricing (JSON)</a>
206
+ <a href="/.well-known/mcp.json">mcp.json</a>
207
+ </div>
208
+
209
+ <div class="footer">Built by <a href="https://meltingpixels.com" style="color:#444">MeltingPixels</a></div>
210
+ </div>
211
+ </body>
212
+ </html>`;
213
+ }
@@ -0,0 +1,58 @@
1
+ interface SearchResult {
2
+ title: string;
3
+ link: string;
4
+ snippet: string;
5
+ position: number;
6
+ }
7
+
8
+ interface SearchResponse {
9
+ query: string;
10
+ results: SearchResult[];
11
+ answer_box: { answer?: string; snippet?: string; title?: string } | null;
12
+ total_results: number;
13
+ searched_at: string;
14
+ }
15
+
16
+ /** Search the web via SerpAPI (Google) and return organic results */
17
+ export async function searchWeb(
18
+ query: string,
19
+ numResults: number = 10
20
+ ): Promise<SearchResponse> {
21
+ const apiKey = process.env.SERPAPI_KEY;
22
+ if (!apiKey) {
23
+ throw new Error("SERPAPI_KEY not configured");
24
+ }
25
+
26
+ const params = new URLSearchParams({
27
+ q: query,
28
+ api_key: apiKey,
29
+ engine: "google",
30
+ num: String(numResults),
31
+ });
32
+
33
+ const res = await fetch(`https://serpapi.com/search?${params.toString()}`);
34
+
35
+ if (!res.ok) {
36
+ const body = await res.text();
37
+ throw new Error(`SerpAPI error ${res.status}: ${body}`);
38
+ }
39
+
40
+ const data = (await res.json()) as {
41
+ organic_results?: Array<{ title: string; link: string; snippet: string; position: number }>;
42
+ answer_box?: { answer?: string; snippet?: string; title?: string };
43
+ search_parameters?: { q: string };
44
+ };
45
+
46
+ return {
47
+ query,
48
+ results: (data.organic_results ?? []).map((r) => ({
49
+ title: r.title,
50
+ link: r.link,
51
+ snippet: r.snippet,
52
+ position: r.position,
53
+ })),
54
+ answer_box: data.answer_box ?? null,
55
+ total_results: data.organic_results?.length ?? 0,
56
+ searched_at: new Date().toISOString(),
57
+ };
58
+ }