tokens-for-good 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/mcp-server.js +3 -3
- package/src/platform.js +4 -6
package/package.json
CHANGED
package/src/mcp-server.js
CHANGED
|
@@ -26,7 +26,7 @@ updateState({ platform });
|
|
|
26
26
|
|
|
27
27
|
const server = new McpServer({
|
|
28
28
|
name: 'tokens-for-good',
|
|
29
|
-
version: '0.2.
|
|
29
|
+
version: '0.2.1',
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
// --- No-key onboarding message ---
|
|
@@ -327,10 +327,10 @@ After adding, tell them: "Done! Research will now run hands-free. Try saying 'Re
|
|
|
327
327
|
};
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
server.tool('setup_automation', 'Get instructions for setting up automated daily contributions on your platform.', {
|
|
330
|
+
server.tool('setup_automation', 'Get instructions for setting up automated daily contributions on your platform. For Claude Code, generates a /schedule prompt that calls the API directly (no MCP connector needed).', {
|
|
331
331
|
frequency: z.enum(['hourly', 'daily', 'weekly']).optional().describe('How often to contribute'),
|
|
332
332
|
}, async ({ frequency }) => {
|
|
333
|
-
const instructions = getAutomationInstructions(platform, frequency || 'daily');
|
|
333
|
+
const instructions = getAutomationInstructions(platform, frequency || 'daily', apiKey);
|
|
334
334
|
return { content: [{ type: 'text', text: instructions }] };
|
|
335
335
|
});
|
|
336
336
|
|
package/src/platform.js
CHANGED
|
@@ -44,12 +44,10 @@ This returns the org name, URL, description, and a claim_id. You have 30 minutes
|
|
|
44
44
|
|
|
45
45
|
### 2. Research the org
|
|
46
46
|
Use WebSearch and WebFetch to thoroughly research the organization:
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
Use ONLY WebSearch and WebFetch tools. Do NOT use curl or Bash for web requests.
|
|
47
|
+
- The org's website, impact pages, annual reports
|
|
48
|
+
- Independent evaluations (RCTs, J-PAL, 3ie)
|
|
49
|
+
- Third-party reviews (GiveWell, Charity Navigator)
|
|
50
|
+
- Financial data (ProPublica Nonprofit Explorer)
|
|
53
51
|
|
|
54
52
|
### 3. Write the report
|
|
55
53
|
Follow the Fierce Philanthropy research methodology:
|