@unstable-dev/unmeshed-mcp 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -12,7 +12,7 @@ Use Unmeshed from Cursor, Claude Code, Codex, and other MCP clients. You do not
12
12
  "mcpServers": {
13
13
  "unmeshed": {
14
14
  "command": "npx",
15
- "args": ["-y", "@unmeshed/mcp"],
15
+ "args": ["-y", "@unstable-dev/unmeshed-mcp"],
16
16
  "env": {
17
17
  "UNMESHED_URL": "https://your-org.unmeshed.io",
18
18
  "UNMESHED_CLIENT_ID": "your-client-id",
@@ -25,7 +25,7 @@ Use Unmeshed from Cursor, Claude Code, Codex, and other MCP clients. You do not
25
25
 
26
26
  That is the whole setup: your Unmeshed URL, plus the same client id and auth token used by `@unmeshed/sdk`.
27
27
 
28
- Until `@unmeshed/mcp` is published, point `command` at Node and `args` at this package’s built file:
28
+ Until you switch this to `@unmeshed/mcp`, testers should use `@unstable-dev/unmeshed-mcp`. For local source, point `command` at Node and `args` at this package’s built file:
29
29
 
30
30
  ```json
31
31
  {
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { pathToFileURL } from "node:url";
3
2
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
3
  import { UnmeshedClient } from "./client.js";
5
4
  import { ConfigError, loadConfig } from "./config.js";
@@ -19,17 +18,8 @@ export async function main() {
19
18
  const transport = new StdioServerTransport();
20
19
  await server.connect(transport);
21
20
  }
22
- function isDirectRun() {
23
- const entry = process.argv[1];
24
- if (!entry) {
25
- return false;
26
- }
27
- return import.meta.url === pathToFileURL(entry).href;
28
- }
29
- if (isDirectRun()) {
30
- main().catch((error) => {
31
- const message = error instanceof Error ? error.stack ?? error.message : String(error);
32
- process.stderr.write(`${message}\n`);
33
- process.exit(1);
34
- });
35
- }
21
+ main().catch((error) => {
22
+ const message = error instanceof Error ? error.stack ?? error.message : String(error);
23
+ process.stderr.write(`${message}\n`);
24
+ process.exit(1);
25
+ });
package/dist/server.js CHANGED
@@ -11,7 +11,7 @@ export const SERVER_INSTRUCTIONS = [
11
11
  export function createUnmeshedMcpServer(client, knowledgeDir = defaultKnowledgeDir()) {
12
12
  const server = new McpServer({
13
13
  name: "unmeshed",
14
- version: "0.1.0",
14
+ version: "0.1.1",
15
15
  }, {
16
16
  instructions: SERVER_INSTRUCTIONS,
17
17
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unstable-dev/unmeshed-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "MCP server for Unmeshed — list, author, save, run, and inspect processes from Cursor, Claude Code, and other MCP clients.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,6 +13,7 @@
13
13
  ],
14
14
  "scripts": {
15
15
  "build": "tsc",
16
+ "prepublishOnly": "npm test && npm run build",
16
17
  "start": "node dist/index.js",
17
18
  "test": "vitest run",
18
19
  "dev": "tsx src/index.ts"