@expensebot/mcp-server-auth 0.6.23 → 0.6.24
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/package.json +1 -1
- package/server.json +2 -2
- package/src/client.js +1 -1
- package/src/index.js +5 -5
- package/src/test.js +9 -0
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ transport and authentication support.
|
|
|
118
118
|
## Discovery
|
|
119
119
|
|
|
120
120
|
- **Official MCP Registry** — active as
|
|
121
|
-
`io.github.TotesMagotes/mcp-server-auth`; version `0.6.
|
|
121
|
+
`io.github.TotesMagotes/mcp-server-auth`; version `0.6.24` is the current
|
|
122
122
|
listing with both npm stdio and remote Streamable HTTP transports
|
|
123
123
|
- **awesome-mcp-servers** — Finance & Fintech section
|
|
124
124
|
- **Glama** — <https://glama.ai/mcp/servers/TotesMagotes/expensebot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expensebot/mcp-server-auth",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.24",
|
|
4
4
|
"mcpName": "io.github.TotesMagotes/mcp-server-auth",
|
|
5
5
|
"description": "ExpenseBot MCP server for receipt and income capture, Gmail scans, spending analytics, and reviewed expense reports from AI assistants.",
|
|
6
6
|
"homepage": "https://www.expensebot.ai/mcp",
|
package/server.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/TotesMagotes/expensebot-mcp",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.6.
|
|
10
|
+
"version": "0.6.24",
|
|
11
11
|
"websiteUrl": "https://www.expensebot.ai/mcp",
|
|
12
12
|
"icons": [
|
|
13
13
|
{
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
{
|
|
29
29
|
"registryType": "npm",
|
|
30
30
|
"identifier": "@expensebot/mcp-server-auth",
|
|
31
|
-
"version": "0.6.
|
|
31
|
+
"version": "0.6.24",
|
|
32
32
|
"transport": {
|
|
33
33
|
"type": "stdio"
|
|
34
34
|
}
|
package/src/client.js
CHANGED
|
@@ -46,7 +46,7 @@ export class ExpenseBotClient {
|
|
|
46
46
|
headers: {
|
|
47
47
|
Authorization: `Bearer ${this.token}`,
|
|
48
48
|
"Content-Type": "application/json",
|
|
49
|
-
"User-Agent": "expensebot-mcp-auth/0.6.
|
|
49
|
+
"User-Agent": "expensebot-mcp-auth/0.6.24",
|
|
50
50
|
"X-ExpenseBot-MCP-Transport": "stdio",
|
|
51
51
|
...options.headers,
|
|
52
52
|
},
|
package/src/index.js
CHANGED
|
@@ -38,9 +38,9 @@ for (const arg of args) {
|
|
|
38
38
|
if (arg.startsWith("--token=")) token = arg.split("=").slice(1).join("=");
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
// If no token: run in onboarding mode
|
|
42
|
-
//
|
|
43
|
-
//
|
|
41
|
+
// If no token: run in onboarding mode with public setup, pricing, product-help,
|
|
42
|
+
// and trial tools. Lets new users discover ExpenseBot via the MCP registry
|
|
43
|
+
// without an account.
|
|
44
44
|
const onboardingMode = !token;
|
|
45
45
|
const client = onboardingMode ? null : new ExpenseBotClient(token);
|
|
46
46
|
|
|
@@ -64,7 +64,7 @@ const SERVER_INSTRUCTIONS = [
|
|
|
64
64
|
if (onboardingMode) {
|
|
65
65
|
console.error(
|
|
66
66
|
"[expensebot-auth] No token provided — running in ONBOARDING MODE.\n" +
|
|
67
|
-
"
|
|
67
|
+
"Public setup, pricing, product-help, and trial tools are available.\n" +
|
|
68
68
|
"Sign up at https://www.expensebot.ai for full access (60-day free trial)."
|
|
69
69
|
);
|
|
70
70
|
}
|
|
@@ -3712,7 +3712,7 @@ function formatResultWithSchema(toolName, result) {
|
|
|
3712
3712
|
|
|
3713
3713
|
async function main() {
|
|
3714
3714
|
const server = new Server(
|
|
3715
|
-
{ name: "expensebot-auth", version: "0.6.
|
|
3715
|
+
{ name: "expensebot-auth", version: "0.6.24" },
|
|
3716
3716
|
{ capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS }
|
|
3717
3717
|
);
|
|
3718
3718
|
|
package/src/test.js
CHANGED
|
@@ -234,6 +234,7 @@ function runServer({ token = "", apiBase, requests = REQUESTS } = {}) {
|
|
|
234
234
|
});
|
|
235
235
|
|
|
236
236
|
const responses = [];
|
|
237
|
+
let stderrBuf = "";
|
|
237
238
|
let stdoutBuf = "";
|
|
238
239
|
|
|
239
240
|
child.stdout.on("data", (chunk) => {
|
|
@@ -252,6 +253,7 @@ function runServer({ token = "", apiBase, requests = REQUESTS } = {}) {
|
|
|
252
253
|
});
|
|
253
254
|
|
|
254
255
|
child.stderr.on("data", (d) => {
|
|
256
|
+
stderrBuf += d.toString();
|
|
255
257
|
// Pass through banners only when running in verbose mode
|
|
256
258
|
if (process.env.MCP_TEST_VERBOSE) {
|
|
257
259
|
process.stderr.write(`[server] ${d}`);
|
|
@@ -264,6 +266,7 @@ function runServer({ token = "", apiBase, requests = REQUESTS } = {}) {
|
|
|
264
266
|
reject(new Error(`Server exited with code ${code}`));
|
|
265
267
|
return;
|
|
266
268
|
}
|
|
269
|
+
responses.stderr = stderrBuf;
|
|
267
270
|
resolve(responses);
|
|
268
271
|
});
|
|
269
272
|
|
|
@@ -318,6 +321,12 @@ function check(label, ok, details = "") {
|
|
|
318
321
|
const byId = new Map(
|
|
319
322
|
responses.filter((r) => r.id != null).map((r) => [r.id, r])
|
|
320
323
|
);
|
|
324
|
+
check(
|
|
325
|
+
"onboarding startup message describes the full public surface",
|
|
326
|
+
/Public setup, pricing, product-help, and trial tools are available\./.test(
|
|
327
|
+
responses.stderr || ""
|
|
328
|
+
) && !/Only get_signup_link/.test(responses.stderr || "")
|
|
329
|
+
);
|
|
321
330
|
|
|
322
331
|
const instructions = byId.get(1)?.result?.instructions || "";
|
|
323
332
|
check(
|