Skip to content

Comments

feat: add MCP server support#10

Merged
butttons merged 10 commits intomainfrom
feat/mcp
Jan 28, 2026
Merged

feat: add MCP server support#10
butttons merged 10 commits intomainfrom
feat/mcp

Conversation

@butttons
Copy link
Owner

Summary

Add MCP (Model Context Protocol) server to expose all dora commands as tools for AI assistants.

Changes

  • Add dora mcp command with stdio transport
  • Expose all 29 CLI commands as MCP tools
  • Add Zod schema validation for command results
  • Fix TypeScript strict mode errors
  • Add type checking to CI

Usage

Claude Code:

claude mcp add --transport stdio dora -- dora mcp

Other MCP clients:

{
  "mcpServers": {
    "dora": {
      "type": "stdio",
      "command": "dora",
      "args": ["mcp"],
      "env": {}
    }
  }
}

🤖 Generated with Claude Code

butttons and others added 8 commits January 28, 2026 00:55
- All commands now return typed data instead of calling outputJson internally
- CLI handlers call outputJson on command results
- MCP handlers call commands directly without captureJsonOutput wrapper
- Updated wrapCommand to accept Promise<any> instead of Promise<void>
- Fixed 24 tests to capture return values instead of console.log output
- Fixed flaky database test by adding try-catch for PRAGMA journal_mode operations

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…in CI

- Replace improper `any` types with `SymbolDefinition` in converter
- Add non-null assertions for array access in tests (noUncheckedIndexedAccess)
- Fix test function calls to match actual parameter types (strings not numbers)
- Add type-check step to CI workflow to prevent future type errors

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 28, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
dora-docs 9287be3 Jan 28 2026, 11:35 AM

@butttons butttons merged commit 6d04b4b into main Jan 28, 2026
2 checks passed
@butttons butttons deleted the feat/mcp branch January 28, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant