Skip to content

Commit 0403261

Browse files
feat: --mcp passthrough + 0.0.38 (#51)
Adds --mcp / --no-mcp option to jspod, wired through to jss start so 'npx jspod --mcp' lights up the MCP server. Pairs with the v0.0.200 capstone (JavaScriptSolidServer#491).
1 parent 914abbc commit 0403261

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ for (let i = 0; i < args.length; i++) {
342342
options.provisionKeys = true;
343343
} else if (arg === '--no-provision-keys') {
344344
options.provisionKeys = false;
345+
} else if (arg === '--mcp') {
346+
options.mcp = true;
347+
} else if (arg === '--no-mcp') {
348+
options.mcp = false;
345349
} else if (arg === '--browser') {
346350
const raw = requireValue(arg, args[++i]);
347351
if (raw !== 'json' && raw !== 'folder') {
@@ -373,6 +377,7 @@ for (let i = 0; i < args.length; i++) {
373377
console.log(chalk.green(' --no-git') + chalk.dim(' Disable JSS\'s git HTTP backend (it is on by default)'));
374378
console.log(chalk.green(' --browser ') + chalk.yellow('<folder|json>') + chalk.dim(' Data browser style (default: folder)'));
375379
console.log(chalk.green(' --provision-keys') + chalk.dim(' Generate a Nostr-compatible owner keypair on first start'));
380+
console.log(chalk.green(' --mcp') + chalk.dim(' Expose /mcp (Model Context Protocol) tool surface for agents'));
376381
console.log(chalk.green(' -v, --version') + chalk.dim(' Show jspod version'));
377382
console.log(chalk.green(' --help') + chalk.dim(' Show this help message\n'));
378383
console.log(chalk.white('Examples:'));
@@ -638,6 +643,7 @@ jssArgs.push(options.git ? '--git' : '--no-git');
638643
// verificationMethod. Pairs with the existing /.well-known/did/nostr/
639644
// resolution endpoint so the pod becomes its own DID resolver.
640645
if (options.provisionKeys) jssArgs.push('--provision-keys');
646+
if (options.mcp) jssArgs.push('--mcp');
641647

642648
// Start JSS with enhanced PATH to find the binary
643649
const jss = spawn('jss', jssArgs, {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspod",
3-
"version": "0.0.37",
3+
"version": "0.0.38",
44
"description": "JavaScript Solid Pod - Just works, batteries included",
55
"type": "module",
66
"main": "index.js",

0 commit comments

Comments
 (0)