create-snipara 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { homedir } from "os";
13
13
  // package.json
14
14
  var package_default = {
15
15
  name: "create-snipara",
16
- version: "2.0.2",
16
+ version: "2.0.3",
17
17
  description: "Onboard Snipara Hosted MCP Context + Memory with auth, companion workflows, and optional Snipara Sandbox",
18
18
  main: "dist/index.js",
19
19
  type: "module",
@@ -1285,6 +1285,11 @@ async function createClaudeCodeConfig(answers) {
1285
1285
  console.log(chalk.bold("\n\u{1F916} Claude Code MCP\n"));
1286
1286
  console.log(chalk.green(" \u2713 Project .mcp.json contains the Snipara Hosted MCP server"));
1287
1287
  console.log(chalk.dim(" Claude Code loads project-scoped MCP servers from .mcp.json."));
1288
+ console.log(
1289
+ chalk.dim(
1290
+ " Claude Code does not load project .env files for MCP; export SNIPARA_API_KEY before launching it."
1291
+ )
1292
+ );
1288
1293
  console.log(chalk.dim(` Verify with: claude mcp list && claude mcp test snipara`));
1289
1294
  }
1290
1295
  async function createProjectBinding(answers) {
@@ -2751,6 +2756,8 @@ function getClaudeClientChecks(answers, detection) {
2751
2756
  detail: projectHasSnipara ? "Project .mcp.json contains a Snipara Hosted MCP server" : "Project .mcp.json does not contain a Snipara Hosted MCP server"
2752
2757
  });
2753
2758
  if (answers.aiClient === "claude-code") {
2759
+ const envFileApiKey = readApiKeyFromEnvFiles();
2760
+ const processHasApiKey = Boolean(process.env.SNIPARA_API_KEY?.trim());
2754
2761
  checks.push({
2755
2762
  name: "claude_code_settings",
2756
2763
  status: hasLegacyCodeSettingsMcp ? "warn" : "pass",
@@ -2758,6 +2765,11 @@ function getClaudeClientChecks(answers, detection) {
2758
2765
  ", "
2759
2766
  )}); Claude Code project MCP should live in .mcp.json or be managed by claude mcp add --scope project` : "Claude settings are not being used as the MCP destination; .claude/settings.json is hooks-only"
2760
2767
  });
2768
+ checks.push({
2769
+ name: "claude_env_key_visible",
2770
+ status: processHasApiKey ? "pass" : "warn",
2771
+ detail: processHasApiKey ? "SNIPARA_API_KEY is visible in the current process environment used for MCP diagnostics" : envFileApiKey ? "SNIPARA_API_KEY exists in .env/.env.local, but Claude Code does not load project .env files for MCP servers. Export it in the shell or launch environment before starting Claude Code, then run: claude mcp list && claude mcp test snipara" : "SNIPARA_API_KEY is not visible to this process. Export it in the shell or launch environment before starting Claude Code, then run: claude mcp list && claude mcp test snipara"
2772
+ });
2761
2773
  checks.push({
2762
2774
  name: "claude_code_hooks",
2763
2775
  status: !answers.installHooks || projectHooksConfigured ? "pass" : "warn",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snipara",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Onboard Snipara Hosted MCP Context + Memory with auth, companion workflows, and optional Snipara Sandbox",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",