@cowliss/cli 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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10648,10 +10648,11 @@ function planTools() {
10648
10648
  * a native tool. The tool table (tools.ts) is planned from the shared route
10649
10649
  * contract at startup, so the surface cannot drift from the API.
10650
10650
  */
10651
- function createMcpServer({ client }) {
10651
+ async function createMcpServer({ client }) {
10652
+ const { version } = await readCliPackage();
10652
10653
  const server = new McpServer({
10653
10654
  name: `${"cow"}-mcp`,
10654
- version: "0.0.0"
10655
+ version
10655
10656
  });
10656
10657
  const request = client.request;
10657
10658
  for (const tool of planTools()) server.registerTool(tool.name, {
@@ -10703,7 +10704,7 @@ function registerMcp(program, clientFor, env, io) {
10703
10704
  ...opts
10704
10705
  });
10705
10706
  if (resolveCredential(env, await readCredentials(env)).kind === "none") io.stderr("cow mcp: not logged in. Run `cow login`, or set COW_TOKEN or COW_DEPLOY_KEY.\n");
10706
- await createMcpServer({ client }).connect(new StdioServerTransport());
10707
+ await (await createMcpServer({ client })).connect(new StdioServerTransport());
10707
10708
  });
10708
10709
  }
10709
10710
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowliss/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "cow": "./dist/index.js"