-
Notifications
You must be signed in to change notification settings - Fork 10
feat(mcp-server): add action tools (getActionForm, executeAction) #1390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add a new MCP tool that provides detailed information about a collection: - Fields with types, operators, and metadata (isPrimaryKey, isReadOnly, etc.) - Relations with type (one-to-many, many-to-many, etc.) and target collection - Actions available on the collection with form information Also adds the capabilities() method to agent-client Collection class to fetch field operators from the agent. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
…ny relations Add a new MCP tool that retrieves records from HasMany and BelongsToMany relations: - Supports all list options (filters, search, sort, pagination, fields) - enableCount option to also return totalCount - Helpful error messages when relation name is invalid - Activity logging with 'listHasMany' action Also adds count() method to agent-client Relation class and exports ListArgument and createListArgumentShape from list.ts for reuse. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add a new MCP tool to delete one or more records from a collection: - Accepts collectionName and recordIds array - Activity logging with 'delete' action - Returns success message with count of deleted records 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add a new MCP tool to create records in a collection: - Accepts collectionName and attributes object - Handles LLM sending attributes as JSON string - Activity logging with 'create' action - Returns the created record 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add a new MCP tool to update records in a collection: - Accepts collectionName, recordId and attributes object - Handles LLM sending attributes as JSON string - Activity logging with 'update' action - Returns the updated record 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add MCP tools for working with Forest Admin actions: getActionForm: - Load form fields for an action with dynamic form support - Shows field types, options, validation, and widget metadata - Supports multi-page forms - Returns hints (canExecute, requiredFieldsMissing) executeAction: - Execute actions with form values - Support for file download responses (returns base64-encoded data) - Activity logging with 'executeAction' action Also adds: - getActionEndpoints helper in schema-fetcher - ActionEndpointsMap export in agent-caller - queryWithFileSupport method in agent-client HttpRequester - executeWithFileSupport method in agent-client Action 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
13 new issues
|
|
Coverage Impact This PR will not change total coverage. 🚦 See full report on Qlty Cloud »🛟 Help
|
7cd3aa0 to
aace3c0
Compare

Summary
Add MCP tools for working with Forest Admin actions:
getActionForm
executeAction
Other changes
getActionEndpointshelper in schema-fetcherActionEndpointsMapexport in agent-callerqueryWithFileSupportmethod in agent-client HttpRequesterexecuteWithFileSupportmethod in agent-client ActionDependencies
This PR is based on #1389 (feat/update) and should be merged after it.
Test plan
🤖 Generated with Claude Code