Skip to content

feat: Add Pip Server Management MCP tools#290

Draft
bmingles wants to merge 19 commits intomainfrom
copilot-worktree-2026-01-26T23-35-58
Draft

feat: Add Pip Server Management MCP tools#290
bmingles wants to merge 19 commits intomainfrom
copilot-worktree-2026-01-26T23-35-58

Conversation

@bmingles
Copy link
Copy Markdown
Collaborator

Overview

This PR implements the Pip Server Management section of the MCP tools implementation plan.

Changes

New MCP Tools

  • ****: Checks if the Python environment supports starting a Deephaven pip server

    • Returns availability status and interpreter path (if available)
    • Handles null controller gracefully
  • ****: Starts a managed Deephaven pip server

    • Validates environment before starting
    • Provides helpful hint when deephaven-server package is not installed
    • Handles errors gracefully

Integration

  • Added pipServerController dependency to McpServer
  • Wired dependency through McpController and ExtensionController
  • Registered both tools in McpServer constructor
  • Exported tools from src/mcp/tools/index.ts

Testing

  • Full test coverage with 10 passing tests
  • Follows established test patterns with expected result constants
  • Tests cover success, error, and edge cases

Checklist

  • Tool files created in src/mcp/tools/
  • All refactoring patterns applied (McpToolResponse, type safety, etc.)
  • Tools exported from src/mcp/tools/index.ts
  • Tools imported and registered in McpServer.ts
  • Test files created with full coverage
  • Tests passing (10/10)
  • No linting/type errors
  • Code follows AGENTS.md guidelines

Related

Implements Pip Server Management section from the MCP tools implementation plan.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 27, 2026

No docs changes detected for 938fe1c

@bmingles bmingles marked this pull request as draft January 27, 2026 00:04
Implement checkPythonEnvironment and startPipServer MCP tools:

- checkPythonEnvironment: Checks if Python environment supports Deephaven pip server
- startPipServer: Starts a managed Deephaven pip server

Key changes:
- Created MCP tools following established patterns
- Added pipServerController dependency to McpServer
- Wired dependency through McpController and ExtensionController
- Full test coverage with 10 passing tests
- Includes helpful hints for missing dependencies (#copilot-worktree-2026-01)
@bmingles bmingles force-pushed the copilot-worktree-2026-01-26T23-35-58 branch from 98f4df9 to 938fe1c Compare January 28, 2026 19:31
@bmingles bmingles changed the base branch from main to DH-20954-3_mcp-server-tools January 28, 2026 19:36
Base automatically changed from DH-20954-3_mcp-server-tools to main January 29, 2026 15:42
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