Skip to content

feat: Add list_projects MCP tool for workflow API#75

Merged
xerial merged 2 commits intomainfrom
add-list-projects-tool
Jun 30, 2025
Merged

feat: Add list_projects MCP tool for workflow API#75
xerial merged 2 commits intomainfrom
add-list-projects-tool

Conversation

@xerial
Copy link
Member

@xerial xerial commented Jun 30, 2025

Summary

  • Add new list_projects MCP tool to list all workflow projects
  • Fix API field naming inconsistency in Task interface (upstreamIds -> upstreams)
  • Add comprehensive tests for the new functionality

Changes

  • Added listProjects method to WorkflowClient with pagination support
  • Created new MCP tool list_projects that returns project list with count
  • Fixed Task interface to use upstreams field instead of upstreamIds to match actual API response
  • Added Project and ProjectListResponse types
  • Registered the new tool in the server
  • Added unit and integration tests

Test plan

  • Unit tests for WorkflowClient.listProjects
  • Unit tests for list_projects MCP tool
  • Integration tests to verify API connectivity
  • All existing tests pass

🤖 Generated with Claude Code

xerial and others added 2 commits June 30, 2025 18:06
- Added listProjects method to WorkflowClient to fetch all workflow projects
- Created new MCP tool list_projects with pagination support
- Fixed API field naming inconsistency: upstreamIds -> upstreams
- Added Project and ProjectListResponse types
- Added unit and integration tests for the new functionality
- Registered the new tool in the server

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Added list_projects tool as #15 in the workflow tools section
- Renumbered subsequent workflow tools (16-24)
- Updated workflow monitoring example to include listing projects
- Added example usage for the list_projects tool

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@xerial xerial merged commit 3e38019 into main Jun 30, 2025
5 checks passed
@xerial xerial deleted the add-list-projects-tool branch June 30, 2025 09:09
@xerial xerial mentioned this pull request Jun 30, 2025
4 tasks
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