@mrrlin-dev/mcp 0.4.284 → 0.4.285

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/bin.cjs +16 -3
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -21935,7 +21935,9 @@ var init_dist = __esm({
21935
21935
  hostname: external_exports.string(),
21936
21936
  os: external_exports.string(),
21937
21937
  cliVersion: external_exports.string(),
21938
- credentialSecret: external_exports.string().optional()
21938
+ credentialSecret: external_exports.string().optional(),
21939
+ // Optional hint from `mrrlin-mcp connect` naming which AI host (codex/claude/agy) actually ran it.
21940
+ detectedProvider: external_exports.string().optional()
21939
21941
  });
21940
21942
  redeemSetupCodeResponseSchema = external_exports.discriminatedUnion("kind", [
21941
21943
  external_exports.object({
@@ -108000,7 +108002,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
108000
108002
  }
108001
108003
 
108002
108004
  // src/_generated/version.ts
108003
- var PKG_VERSION = "0.4.284";
108005
+ var PKG_VERSION = "0.4.285";
108004
108006
 
108005
108007
  // src/bridge-allowed-origins.ts
108006
108008
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
@@ -133705,6 +133707,15 @@ function parseCode(argv) {
133705
133707
  function isUnauthorized(error51) {
133706
133708
  return typeof error51 === "object" && error51 !== null && error51.status === 401;
133707
133709
  }
133710
+ function detectCallerProvider(env) {
133711
+ const matches = [];
133712
+ if (env.CLAUDECODE === "1" || Boolean(env.CLAUDE_CODE_ENTRYPOINT?.trim())) matches.push("claude");
133713
+ if (Boolean(env.CODEX_THREAD_ID?.trim()) || env.CODEX_CI === "1" || Boolean(env.CODEX_SANDBOX?.trim())) {
133714
+ matches.push("codex");
133715
+ }
133716
+ if (env.ANTIGRAVITY_AGENT === "1" || Boolean(env.ANTIGRAVITY_CONVERSATION_ID?.trim())) matches.push("agy");
133717
+ return matches.length === 1 ? matches[0] : void 0;
133718
+ }
133708
133719
  async function runConnect(argv, deps) {
133709
133720
  const say = (message) => deps.log(`[mrrlin-mcp connect] ${message}`);
133710
133721
  const code = parseCode(argv);
@@ -133712,11 +133723,13 @@ async function runConnect(argv, deps) {
133712
133723
  say("Usage: mrrlin-mcp connect --code <setup code> [--switch-account]");
133713
133724
  return 2;
133714
133725
  }
133726
+ const detectedProvider = detectCallerProvider(deps.env);
133715
133727
  const baseBody = {
133716
133728
  code,
133717
133729
  hostname: deps.hostname,
133718
133730
  os: `${deps.platform} ${deps.osRelease}`.trim(),
133719
- cliVersion: deps.cliVersion
133731
+ cliVersion: deps.cliVersion,
133732
+ ...detectedProvider ? { detectedProvider } : {}
133720
133733
  };
133721
133734
  const stored = deps.readSecret();
133722
133735
  const switchAccount = argv.includes("--switch-account");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.284",
3
+ "version": "0.4.285",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"