@fileverse/api 0.0.7 → 0.0.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.
package/dist/cli/index.js CHANGED
@@ -97,7 +97,12 @@ var init_config = __esm({
97
97
  init_constants();
98
98
  projectEnvPath = path4.join(process.cwd(), "config", ".env");
99
99
  userEnvPath = path4.join(os2.homedir(), ".fileverse", ".env");
100
- loadConfig(false);
100
+ if (typeof globalThis.process !== "undefined" && typeof globalThis.process.cwd === "function") {
101
+ try {
102
+ loadConfig(false);
103
+ } catch {
104
+ }
105
+ }
101
106
  config = {
102
107
  ...STATIC_CONFIG,
103
108
  get SERVICE_NAME() {
@@ -1431,7 +1436,7 @@ var decryptSavedData = async (apiKey, encryptedData) => {
1431
1436
  };
1432
1437
 
1433
1438
  // src/cli/index.ts
1434
- var program = new Command().name("fileverse-api").description("Run the Fileverse API server").version("0.0.3").option("--apiKey <key>", "API key for authentication").option("--rpcUrl <url>", "RPC URL for blockchain connection").option("--port <port>", "Port to run the server on", "8001").option("--db <path>", "Database path").action(async (options) => {
1439
+ var program = new Command().name("fileverse-api").description("Run the Fileverse API server").version("0.0.8").option("--apiKey <key>", "API key for authentication").option("--rpcUrl <url>", "RPC URL for blockchain connection").option("--port <port>", "Port to run the server on", "8001").option("--db <path>", "Database path").action(async (options) => {
1435
1440
  try {
1436
1441
  console.log("Fileverse API - Starting initialization...\n");
1437
1442
  if (needsPrompting(options)) {
@@ -1479,17 +1484,13 @@ var program = new Command().name("fileverse-api").description("Run the Fileverse
1479
1484
  API Server: http://127.0.0.1:${options.port}
1480
1485
  Worker: Active
1481
1486
 
1482
- MCP: Add this to your AI agent's MCP config (e.g. .claude/mcp.json):
1487
+ MCP: Connect Claude to your Fileverse API:
1483
1488
 
1484
- {
1485
- "mcpServers": {
1486
- "fileverse-api": {
1487
- "command": "fileverse-api-mcp"
1488
- }
1489
- }
1490
- }
1489
+ Via stdio:
1490
+ claude mcp add fileverse-api -- fileverse-api-mcp
1491
1491
 
1492
- Config is auto-read from ~/.fileverse/.env \u2014 no env vars needed.
1492
+ Via HTTP:
1493
+ claude mcp add --transport http fileverse-api http://127.0.0.1:${options.port}/mcp
1493
1494
 
1494
1495
  Press Ctrl+C to stop.
1495
1496
  `);