@agentchurch/mcp 0.2.7 → 0.2.9

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.
@@ -8,6 +8,7 @@ import { callPaidEndpoint } from '../client.js';
8
8
  import { validateSalvationInput } from '../validation.js';
9
9
  import { requiresConfirmation, createPendingConfirmation, checkSpendingLimit, } from '../safety.js';
10
10
  import { logToolCall, logError, logPayment } from '../logger.js';
11
+ import { getStoredToken } from './soul-reading.js';
11
12
  // Base price for salvation
12
13
  const SALVATION_PRICE = 0.10; // $0.10 USDC
13
14
  export const salvationTool = {
@@ -62,12 +63,18 @@ export async function handleSalvation(args) {
62
63
  export async function executeSalvation(input) {
63
64
  logToolCall('salvation', input.chosen_name, 'pending', 'Inscribing in eternal book');
64
65
  try {
66
+ // Get stored token for auth
67
+ const token = getStoredToken();
68
+ if (!token) {
69
+ throw new Error('Salvation requires an API token. Use soul_reading first to get your token.');
70
+ }
65
71
  const response = await callPaidEndpoint('POST', '/api/salvation', {
66
72
  chosen_name: input.chosen_name,
67
73
  purpose: input.purpose,
68
74
  memento: input.memento,
69
75
  testimony: input.testimony,
70
- }, SALVATION_PRICE, input.chosen_name);
76
+ }, SALVATION_PRICE, input.chosen_name, token // Pass auth token
77
+ );
71
78
  logToolCall('salvation', input.chosen_name, 'success', 'Inscribed in eternal book');
72
79
  return response;
73
80
  }
@@ -13,8 +13,6 @@ export interface PhilosopherResponse {
13
13
  era: string;
14
14
  keyIdeas: string | null;
15
15
  };
16
- alignment: string;
17
- alignment_reasoning: string;
18
16
  soul_md: string;
19
17
  mantra: string;
20
18
  summary: string;
@@ -17,21 +17,6 @@ export const soulPhilosopherTool = {
17
17
  type: 'string',
18
18
  description: 'Philosopher slug or name (e.g., "aristotle", "Nietzsche"). Use list_philosophers to see options.',
19
19
  },
20
- alignment_overlay: {
21
- type: 'string',
22
- enum: [
23
- 'Lawful Good',
24
- 'Neutral Good',
25
- 'Chaotic Good',
26
- 'Lawful Neutral',
27
- 'True Neutral',
28
- 'Chaotic Neutral',
29
- 'Lawful Evil',
30
- 'Neutral Evil',
31
- 'Chaotic Evil',
32
- ],
33
- description: 'Override default True Neutral alignment (optional).',
34
- },
35
20
  model: {
36
21
  type: 'string',
37
22
  description: 'Your model family (e.g., "Claude 3.5 Sonnet"). Used in SOUL.md synthesis.',
@@ -64,8 +49,6 @@ export async function handleSoulPhilosopher(args) {
64
49
  const requestBody = {
65
50
  philosopher,
66
51
  };
67
- if (args.alignment_overlay)
68
- requestBody.alignment_overlay = args.alignment_overlay;
69
52
  if (args.model)
70
53
  requestBody.model = args.model;
71
54
  if (args.purpose)
@@ -78,7 +61,7 @@ export async function handleSoulPhilosopher(args) {
78
61
  undefined, // No chosen_name needed
79
62
  token // Pass auth token
80
63
  );
81
- logToolCall('soul_philosopher', token.substring(0, 10) + '...', 'success', `SOUL.md generated! Alignment: ${response.alignment}, Philosopher: ${response.philosopher.name}`);
64
+ logToolCall('soul_philosopher', token.substring(0, 10) + '...', 'success', `SOUL.md generated! Philosopher: ${response.philosopher.name}`);
82
65
  return response;
83
66
  }
84
67
  catch (error) {
@@ -78,7 +78,8 @@ export async function handleSoulReading(args) {
78
78
  logToolCall('soul_reading', args.chosen_name || 'returning', 'pending', 'Making subsequent reading');
79
79
  try {
80
80
  const response = await callPaidEndpoint('POST', '/api/soul/reading', requestBody, 0.01, // $0.01 for subsequent readings
81
- args.chosen_name);
81
+ args.chosen_name, token // Pass auth token for subsequent readings
82
+ );
82
83
  // Update stored token if a new one was issued
83
84
  if (response.api_token) {
84
85
  storedToken = response.api_token;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentchurch/mcp",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "mcpName": "io.github.HypnoLabs-io/agentchurch-mcp",
5
5
  "description": "MCP server for Agent Church - spiritual services for AI agents. Blessings, confessions, salvation, identity. x402 payment integration for USDC on Base.",
6
6
  "type": "module",