Stats
Actions
Tags
Copy this JSON into your .mcp.json to enable this server
Add to your .mcp.json:
{
"mcpServers": {
"contextforge": {
"command": "node",
"args": [
"-e",
"const fs=require('node:fs');const os=require('node:os');const path=require('node:path');const cp=require('node:child_process');const version='0.1.52';const packageName='contextforge';const runtimeRoot=process.env.CONTEXTFORGE_RUNTIME_ROOT?path.resolve(process.env.CONTEXTFORGE_RUNTIME_ROOT):path.join(os.homedir(),'.contextforge','runtime');const pluginRoot=process.env.CLAUDE_PLUGIN_ROOT?path.resolve(process.env.CLAUDE_PLUGIN_ROOT):null;const localScript=pluginRoot?path.join(pluginRoot,'dist','.claude-plugin','bootstrap-mcp.js'):null;const cacheRoot=path.join(runtimeRoot,'v'+version);const cachedScript=path.join(cacheRoot,'node_modules',packageName,'dist','.claude-plugin','bootstrap-mcp.js');const installSpec='github:Yabuku-xD/contextforge#v'+version;if(process.env.CONTEXTFORGE_INLINE_LAUNCHER_MODE==='inspect'){process.stdout.write(JSON.stringify({version,pluginRoot,localScript,cachedScript,localExists:Boolean(localScript&&fs.existsSync(localScript)),cachedExists:fs.existsSync(cachedScript),installSpec},null,2));process.exit(0);}if(!(localScript&&fs.existsSync(localScript))&&!fs.existsSync(cachedScript)){fs.mkdirSync(cacheRoot,{recursive:true});const npmCommand=process.platform==='win32'?'npm.cmd':'npm';const result=cp.spawnSync(npmCommand,['install','--no-audit','--no-fund','--omit=dev','--prefer-offline','--prefix',cacheRoot,installSpec],{encoding:'utf8',env:{...process.env,npm_config_loglevel:process.env.npm_config_loglevel??'error'}});const output=[result.stdout,result.stderr].filter(Boolean).join('');if(output&&(result.status!==0||process.env.CONTEXTFORGE_BOOTSTRAP_DEBUG==='1')){process.stderr.write(output);}if(result.status!==0){process.exit(result.status??1);}}const script=localScript&&fs.existsSync(localScript)?localScript:cachedScript;const child=cp.spawn(process.execPath,[script,...process.argv.slice(1)],{stdio:'inherit',env:process.env});child.on('exit',(code,signal)=>{if(signal){process.kill(process.pid,signal);return;}process.exit(code??0);});",
"--"
],
"env": {
"CONTEXTFORGE_USE_ACTIVE_SESSION": "1"
}
}
}
}Review these signals before enabling this server
This server has elevated permissions. Review the source code before enabling.
Server configuration and connection parameters
nodeCommand-line arguments passed to the server process
Environment variables set when the server starts
CONTEXTFORGE_USE_ACTIVE_SESSION=1Declared capabilities of this MCP server
npx claudepluginhub yabuku-xd/contextforge --plugin contextforge