melos run pollutes stdout, breaking the MCP JSON-RPC channel. The compiled binary has clean stdio and can be pointed at directly by MCP clients. - Add melos run compile script (output to .project/toolchain/bin/dew) - Ignore .project/toolchain/ in .gitignore - Update mcp.md with compile + client config instructions - Remove workspace-root bin/ directory Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
name: dew_workspace
|
|
description: A Dart workspace for the dew project management tool.
|
|
version: 0.1.0
|
|
# repository: https://github.com/my_org/my_repo
|
|
publish_to: none
|
|
|
|
environment:
|
|
sdk: ^3.11.4
|
|
|
|
workspace:
|
|
- packages/cli
|
|
- packages/core
|
|
- packages/kanban
|
|
- packages/mcp
|
|
|
|
dev_dependencies:
|
|
lints: ^6.0.0
|
|
melos: ^7.0.0
|
|
|
|
melos:
|
|
scripts:
|
|
analyze:
|
|
description: Run static analysis across workspace packages.
|
|
run: melos exec --fail-fast -- dart analyze
|
|
test:
|
|
description: Run package tests across workspace packages that define tests.
|
|
run: melos exec --fail-fast --dir-exists=test -- dart test
|
|
format:
|
|
description: Format the workspace.
|
|
run: dart format .
|
|
dew:
|
|
description: >-
|
|
Run the Dew CLI via 'dart run' (for development). Pass subcommands and
|
|
args directly (e.g. melos run dew kanban). Use 'help <command>' for
|
|
usage (e.g. melos run dew help kanban).
|
|
NOTE: 'mcp serve' must be run via the compiled binary (see compile
|
|
script) because melos pollutes stdout, which breaks the stdio MCP
|
|
transport.
|
|
run: dart run packages/cli/bin/dew.dart
|
|
compile:
|
|
description: >-
|
|
Compile the Dew CLI to a native binary at .project/toolchain/bin/dew
|
|
(.project/toolchain/bin/dew.exe on Windows). Use the compiled binary to
|
|
run 'dew mcp serve' from your MCP client config — this keeps stdout
|
|
clean for the JSON-RPC channel.
|
|
run: dart compile exe packages/cli/bin/dew.dart -o .project/toolchain/bin/dew
|