@myelixlabs/sample-mcp 0.1.6 → 0.1.7

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/lib/mcp-config.js CHANGED
@@ -61,12 +61,11 @@ function hasSampleJson(data, section = 'mcpServers') {
61
61
  if (servers[SERVER_NAME]) return true;
62
62
  return Object.entries(servers).some(([name, server]) => {
63
63
  if (String(name).toLowerCase() === SERVER_NAME) return true;
64
- if (String(name).toLowerCase() === 'synapse') return true;
65
64
  return (
66
65
  server &&
67
66
  typeof server === 'object' &&
68
67
  typeof server.command === 'string' &&
69
- /(sample-mcp|synapse-mcp)/.test(server.command)
68
+ path.basename(server.command).toLowerCase() === SERVER_NAME
70
69
  );
71
70
  });
72
71
  }
@@ -78,11 +77,8 @@ function hasSampleJson(data, section = 'mcpServers') {
78
77
  }
79
78
 
80
79
  function hasSampleToml(text) {
81
- return (
82
- /\[\s*mcp_servers\.sample-mcp\s*\]/.test(text) ||
83
- /\[\s*mcp_servers\.synapse\s*\]/.test(text) ||
84
- /(sample-mcp|synapse-mcp)/.test(text)
85
- );
80
+ return /\[\s*mcp_servers\.sample-mcp\s*\]/.test(text) ||
81
+ text.split(/\r?\n/).some((line) => line.includes(SERVER_NAME));
86
82
  }
87
83
 
88
84
  function discoverHarnesses(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myelixlabs/sample-mcp",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "POC installer/launcher for the Sample MCP precompiled binary.",
5
5
  "bin": {
6
6
  "sample-mcp": "bin/sample-mcp.js",