@composer-app/mcp 0.0.4-beta.1 → 0.0.5

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/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  logError,
5
5
  startMcpHttpServer,
6
6
  startMcpServer
7
- } from "./chunk-ORB2OJTN.js";
7
+ } from "./chunk-IDX65B2W.js";
8
8
 
9
9
  // src/setup.ts
10
10
  import * as fs from "fs/promises";
@@ -52,7 +52,7 @@ function printIntro() {
52
52
  `);
53
53
  write("\n");
54
54
  write(
55
- ` ${bold("Realtime collaborative markdown")} for you and your AI agents.
55
+ ` ${bold("A realtime collaborative markdown editor")} for your team and agents to work together.
56
56
  `
57
57
  );
58
58
  write(` Same doc, live \u2014 comments, suggestions, edits. No copy-paste.
@@ -505,14 +505,14 @@ var registerStep = async (state, canGoBack) => {
505
505
  return "prompted";
506
506
  };
507
507
  var scopeStep = async (state, canGoBack) => {
508
- section("Add the 'offer Composer' rule");
508
+ section("Add rule to send markdown plans to Composer for review?");
509
509
  note([
510
510
  "Adds a line to your agent's rules file (CLAUDE.md, AGENTS.md, etc.)",
511
- "so it proactively offers to send generated markdown \u2014 plans, writing,",
512
- "docs \u2014 to Composer instead of waiting for you to ask."
511
+ "so that it will proactively offer to send generated markdown to",
512
+ "iterate on together vs. only writing it to a markdown file."
513
513
  ]);
514
514
  const r = await select(
515
- "Where should the rule go?",
515
+ "Composer rule scope",
516
516
  [
517
517
  { value: "user", label: "User-level", hint: "applies to all your projects" },
518
518
  { value: "project", label: "Project-level", hint: process.cwd() }
package/dist/mcp.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  startMcpHttpServer,
16
16
  startMcpServer,
17
17
  teardownAllRooms
18
- } from "./chunk-ORB2OJTN.js";
18
+ } from "./chunk-IDX65B2W.js";
19
19
  export {
20
20
  __test_clearRooms,
21
21
  __test_dispatch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composer-app/mcp",
3
- "version": "0.0.4-beta.1",
3
+ "version": "0.0.5",
4
4
  "description": "Composer MCP",
5
5
  "license": "MIT",
6
6
  "author": "Josh Philpott",
@@ -28,10 +28,14 @@
28
28
  "access": "public"
29
29
  },
30
30
  "scripts": {
31
+ "setup_env": "OP_SERVICE_ACCOUNT_TOKEN=$COMPOSER_OP_SERVICE_ACCOUNT_TOKEN op run --environment $COMPOSER_OP_ENV_ID --no-masking --",
32
+ "setup_env:prod": "OP_SERVICE_ACCOUNT_TOKEN=$COMPOSER_OP_SERVICE_ACCOUNT_TOKEN op run --environment $COMPOSER_OP_PROD_ENV_ID --no-masking --",
31
33
  "build": "tsup",
32
34
  "dev": "tsup --watch",
33
- "start:local": "tsx --env-file=.env.local src/cli.ts mcp",
34
- "start:prod": "tsx --env-file=.env.production src/cli.ts mcp",
35
+ "dev:http": "npm run setup_env -- tsx watch --clear-screen=false src/cli.ts http",
36
+ "dev:http:prod": "npm run setup_env:prod -- tsx watch --clear-screen=false src/cli.ts http",
37
+ "start:local": "exec env COMPOSER_SERVER_HOST=localhost:5173 COMPOSER_APP_BASE=http://localhost:5173 tsx src/cli.ts mcp",
38
+ "start:prod": "exec tsx src/cli.ts mcp",
35
39
  "typecheck": "tsc --noEmit -p .",
36
40
  "test": "vitest run"
37
41
  },