This is a read-only repository used to release the sub-tree. Any issues and pull requests should be forwarded to the upstream Action repository.
Symfony bundle for managing and executing FaaS-like Actions. Provides a Doctrine-backed approval flow, web UI, REST API, MCP endpoint, and console commands on top of linkorb/action-component.
This package lives in the Action repository and is required by the standalone app via a Composer path repository.
# config/services.yaml
services:
App\ActionPack\MyActionPack:
tags: ['action.pack']use LinkORB\Component\Action\Attribute\Action;
use LinkORB\Component\Action\Attribute\ActionPack;
use LinkORB\Component\Action\Host\HostInterface;
#[ActionPack(name: 'my', description: 'My custom actions')]
class MyActionPack
{
#[Action(
name: 'hello',
description: 'Say hello',
inputSchema: [
'type' => 'object',
'properties' => ['name' => ['type' => 'string']],
'required' => ['name'],
],
outputSchema: [
'type' => 'object',
'properties' => ['message' => ['type' => 'string']],
],
)]
public function hello(array $input, HostInterface $host): array
{
$host->log('info', 'Saying hello to ' . $input['name']);
return ['message' => 'Hello, ' . $input['name'] . '!'];
}
}| Surface | Path |
|---|---|
| Web UI | /action/actions |
| Approvals | /action/approvals |
| REST | /api/v1/action/actions |
| MCP | /api/action/mcp |
bin/console action:run demo.greet --input='{"name":"World"}'
bin/console action:list