omnipost-mcp 0.1.1 → 0.1.2

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/package.json +1 -1
  2. package/src/bridge.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnipost-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "MCP server for OmniPost: lets Claude Code, Claude Desktop, Cursor and other MCP clients publish articles, image posts and videos to 40+ Chinese and overseas platforms through the OmniPost desktop app running on your machine.",
5
5
  "mcpName": "io.github.OmniGoAI/omnipost",
6
6
  "type": "module",
package/src/bridge.js CHANGED
@@ -86,7 +86,7 @@ export class AppConnection {
86
86
  async get() {
87
87
  if (this.client) return this.client;
88
88
  const endpoint = this.resolve();
89
- const client = new Client({ name: 'omnipost-mcp-bridge', version: '0.1.1' });
89
+ const client = new Client({ name: 'omnipost-mcp-bridge', version: '0.1.2' });
90
90
  client.onclose = () => { if (this.client === client) this.client = null; };
91
91
  const connecting = client.connect(this.transportFactory(endpoint));
92
92
  let timer;
@@ -117,7 +117,7 @@ function shortCause(err) {
117
117
  return String(err?.cause?.code || err?.code || err?.message || err).slice(0, 160);
118
118
  }
119
119
 
120
- export function createBridgeServer({ connection = new AppConnection(), snapshot = loadSnapshot(), version = '0.1.1' } = {}) {
120
+ export function createBridgeServer({ connection = new AppConnection(), snapshot = loadSnapshot(), version = '0.1.2' } = {}) {
121
121
  const server = new Server(
122
122
  { name: 'omnipost', version },
123
123
  {