Skip to content

refactor: centralize shared parameter definitions in params.py#32

Merged
siddhant3030 merged 4 commits into
mainfrom
feat/centralize-params
May 28, 2026
Merged

refactor: centralize shared parameter definitions in params.py#32
siddhant3030 merged 4 commits into
mainfrom
feat/centralize-params

Conversation

@siddhant3030

Copy link
Copy Markdown
Collaborator

Summary

  • Creates src/dalgo_mcp/params.py with 10 shared Annotated parameter types
  • Updates pipelines.py, warehouse.py, charts.py, dashboards.py, connections.py, sources.py to use shared types
  • Removes duplicated Args: docstring entries for centralized params

Why

8 parameter names were duplicated across 5+ tools with identical descriptions. A single change to a parameter description (e.g. "The Prefect deployment ID" → "The Prefect pipeline deployment ID") now only needs to happen in one place.

Test plan

  • All existing tests still pass
  • No NameError or ImportError on server start
  • Tool schemas still include correct parameter descriptions

Closes #6
🤖 Generated with Claude Code

siddhant3030 and others added 4 commits May 27, 2026 16:44
Extracts 8 duplicated parameter types (DeploymentId, FlowRunId,
ChartId, DashboardId, ConnectionId, SourceId, SchemaName, TableName)
into params.py using Annotated[str, Field(description=...)].
Updates 6 tool files to use the shared types. Closes #6.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Preserved dev dependencies and ruff/pytest tool config from main
alongside the unit test suite additions from this branch.

https://claude.ai/code/session_011MeXGRNe15ksjbwsDM8ULN
Resolved conflicts in 6 tool files (charts, connections, dashboards,
pipelines, sources, warehouse) by combining typed params from this branch
with adapt_context() pattern from main. Fixed ruff E402 in server.py.

https://claude.ai/code/session_011MeXGRNe15ksjbwsDM8ULN
Claude Code reads slash commands from .claude/commands/, not .claude/skills/.
Renamed directory so /progress, /mcp-research, /ngo-onboarding work.

https://claude.ai/code/session_011MeXGRNe15ksjbwsDM8ULN
@siddhant3030 siddhant3030 merged commit e0e0598 into main May 28, 2026
0 of 3 checks passed
@siddhant3030 siddhant3030 deleted the feat/centralize-params branch June 8, 2026 09:51
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.

Centralize shared parameter definitions in params.py

2 participants