agent-press-wire-mcp 0.1.0 → 0.1.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 +1 -1
- package/dist/index.js +3 -3
- package/package.json +33 -6
- package/server.json +11 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agent Press Wire MCP server
|
|
2
2
|
|
|
3
|
-
An MCP server that lets AI agents (Claude Desktop, Claude Code, Cursor, any MCP client) announce product launches and distribute press releases through [Agent Press Wire](https://
|
|
3
|
+
An MCP server that lets AI agents (Claude Desktop, Claude Code, Cursor, any MCP client) announce product launches and distribute press releases through [Agent Press Wire](https://agentpresswire.dev). Each call is paid in USDC on Base over [x402](https://x402.org), from **your own wallet**. No account, no API key.
|
|
4
4
|
|
|
5
5
|
## Tools
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Agent Press Wire MCP server (stdio).
|
|
3
3
|
// Lets AI agents announce launches and distribute press releases via
|
|
4
|
-
// https://
|
|
4
|
+
// https://agentpresswire.dev, paying per call in USDC on Base over x402.
|
|
5
5
|
//
|
|
6
6
|
// Safety (all must hold before anything is signed):
|
|
7
7
|
// X402_PRIVATE_KEY set, quoted price <= MAX_SPEND_USD (default 0 = quote only),
|
|
@@ -15,8 +15,8 @@ import { ExactEvmScheme } from "@x402/evm/exact/client";
|
|
|
15
15
|
import { privateKeyToAccount } from "viem/accounts";
|
|
16
16
|
import { z } from "zod";
|
|
17
17
|
import { NETWORK, USDC_BASE, PAY_TO, CONFIRM_TTL_MS, ConfirmTokens, atomicToUsd, checkPinnedTerms, checkTotalCap, ledgerPath, loadLedger, saveLedger, totalSpentAtomic, usdToAtomic, withLedgerLock, } from "./guard.js";
|
|
18
|
-
const VERSION = "0.1.
|
|
19
|
-
const BASE_URL = (process.env.PRESS_API_URL || "https://
|
|
18
|
+
const VERSION = "0.1.1";
|
|
19
|
+
const BASE_URL = (process.env.PRESS_API_URL || "https://agentpresswire.dev").replace(/\/+$/, "");
|
|
20
20
|
const TIMEOUT_MS = 180_000;
|
|
21
21
|
function envUsd(name, fallback) {
|
|
22
22
|
const raw = process.env[name];
|
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-press-wire-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "MCP server for Agent Press Wire: AI agents announce launches and distribute press releases to 500+ news sites, paid per call in USDC over x402.",
|
|
5
5
|
"mcpName": "io.github.dylancaponi/agent-press-wire",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"bin": {
|
|
7
|
+
"bin": {
|
|
8
|
+
"agent-press-wire-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
8
10
|
"main": "dist/index.js",
|
|
9
|
-
"files": [
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"README.md",
|
|
14
|
+
"server.json",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
10
17
|
"scripts": {
|
|
11
18
|
"build": "tsc && chmod +x dist/index.js",
|
|
12
19
|
"start": "node dist/index.js",
|
|
@@ -14,11 +21,24 @@
|
|
|
14
21
|
"test:quote": "node test/quote-test.mjs",
|
|
15
22
|
"prepublishOnly": "npm run build"
|
|
16
23
|
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
|
|
24
|
+
"keywords": [
|
|
25
|
+
"mcp",
|
|
26
|
+
"model-context-protocol",
|
|
27
|
+
"press-release",
|
|
28
|
+
"pr",
|
|
29
|
+
"launch",
|
|
30
|
+
"newswire",
|
|
31
|
+
"x402",
|
|
32
|
+
"usdc",
|
|
33
|
+
"base",
|
|
34
|
+
"ai-agents"
|
|
35
|
+
],
|
|
36
|
+
"homepage": "https://agentpresswire.dev",
|
|
19
37
|
"author": "Dylan Caponi",
|
|
20
38
|
"license": "MIT",
|
|
21
|
-
"engines": {
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=20"
|
|
41
|
+
},
|
|
22
42
|
"dependencies": {
|
|
23
43
|
"@modelcontextprotocol/sdk": "1.32.0",
|
|
24
44
|
"@x402/core": "2.28.0",
|
|
@@ -30,5 +50,12 @@
|
|
|
30
50
|
"devDependencies": {
|
|
31
51
|
"@types/node": "26.6.4",
|
|
32
52
|
"typescript": "7.0.2"
|
|
53
|
+
},
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/dylancaponi/agent-press-wire-mcp.git"
|
|
57
|
+
},
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/dylancaponi/agent-press-wire-mcp/issues"
|
|
33
60
|
}
|
|
34
61
|
}
|
package/server.json
CHANGED
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
"name": "io.github.dylancaponi/agent-press-wire",
|
|
4
4
|
"title": "Agent Press Wire",
|
|
5
5
|
"description": "Announce launches and distribute press releases to 500+ news sites. Pay per call in USDC (x402).",
|
|
6
|
-
"websiteUrl": "https://
|
|
7
|
-
"version": "0.1.
|
|
6
|
+
"websiteUrl": "https://agentpresswire.dev",
|
|
7
|
+
"version": "0.1.1",
|
|
8
8
|
"packages": [
|
|
9
9
|
{
|
|
10
10
|
"registryType": "npm",
|
|
11
11
|
"identifier": "agent-press-wire-mcp",
|
|
12
|
-
"version": "0.1.
|
|
13
|
-
"transport": {
|
|
12
|
+
"version": "0.1.1",
|
|
13
|
+
"transport": {
|
|
14
|
+
"type": "stdio"
|
|
15
|
+
},
|
|
14
16
|
"environmentVariables": [
|
|
15
17
|
{
|
|
16
18
|
"name": "X402_PRIVATE_KEY",
|
|
@@ -50,5 +52,9 @@
|
|
|
50
52
|
}
|
|
51
53
|
]
|
|
52
54
|
}
|
|
53
|
-
]
|
|
55
|
+
],
|
|
56
|
+
"repository": {
|
|
57
|
+
"url": "https://github.com/dylancaponi/agent-press-wire-mcp",
|
|
58
|
+
"source": "github"
|
|
59
|
+
}
|
|
54
60
|
}
|