@assemblyline-agents/arcads 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 OpenEve contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # @assemblyline-agents/arcads
2
+
3
+ Official Assembly Line connection plugin for the Arcads hosted Streamable HTTP MCP
4
+ server at `https://mcp.arcads.ai`.
5
+
6
+ ## Setup
7
+
8
+ Arcads uses OAuth 2.0 Authorization Code + PKCE and dynamic client
9
+ registration. Register one client for the Assembly Line deployment:
10
+
11
+ ```sh
12
+ curl -X POST https://api.arcads.ai/oauth/register \
13
+ -H 'content-type: application/json' \
14
+ -d '{
15
+ "client_name": "Assembly Line",
16
+ "redirect_uris": ["https://YOUR-AGENT-HOST/openeve/connections/callback"],
17
+ "grant_types": ["authorization_code", "refresh_token"],
18
+ "response_types": ["code"],
19
+ "token_endpoint_auth_method": "none"
20
+ }'
21
+ ```
22
+
23
+ The registered redirect URI uses the legacy `/openeve/...` path because
24
+ callback-URL construction still emits it during the rename compatibility
25
+ window; the runtime also serves `/assembly-line/connections/callback`.
26
+
27
+ Store the returned `client_id` as `ARCADS_MCP_CLIENT_ID`. Set
28
+ `ARCADS_MCP_REDIRECT_URI` only when the registered callback differs from
29
+ Assembly Line's normal connection callback URL.
30
+
31
+ ```sh
32
+ assembly-line add arcads agent
33
+ ```
34
+
35
+ The generated connection starts read-only. Most Arcads tools create or edit
36
+ media and can consume account credits, so enable writes with an explicit
37
+ approval policy:
38
+
39
+ ```ts
40
+ import { defineArcadsConnection } from "@assemblyline-agents/arcads";
41
+
42
+ export default defineArcadsConnection({
43
+ access: {
44
+ read: true,
45
+ write: { approval: "always" }
46
+ }
47
+ });
48
+ ```
49
+
50
+ The deployment owner supplies the Arcads account, subscription, OAuth client,
51
+ credit policy, and callback URL. OAuth tokens stay in Assembly Line's connection
52
+ grant store.
@@ -0,0 +1,7 @@
1
+ import { type ConnectionAuthDefinition, type McpPluginConnectionOptions } from "@assemblyline-agents/core";
2
+ export interface ArcadsConnectionOptions extends Omit<McpPluginConnectionOptions, "auth"> {
3
+ auth?: ConnectionAuthDefinition | false;
4
+ }
5
+ export declare function defineArcadsConnection(options: ArcadsConnectionOptions): import("@assemblyline-agents/core").McpHttpClientConnectionDefinition;
6
+ export declare const openevePlugin: import("@assemblyline-agents/core").PluginModule;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AAInC,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC;IACvF,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC;CACzC;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,uBAAuB,yEAMtE;AAED,eAAO,MAAM,aAAa,kDAA0C,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ import { connectionPluginMetadata, defineMcpPluginConnection, defineOAuthAuthorization, definePlugin } from "@assemblyline-agents/core";
2
+ const PLUGIN = connectionPluginMetadata("arcads");
3
+ export function defineArcadsConnection(options) {
4
+ const { auth, ...connection } = options;
5
+ return defineMcpPluginConnection(PLUGIN, {
6
+ ...connection,
7
+ auth: auth === false ? false : auth ?? arcadsOAuth()
8
+ });
9
+ }
10
+ export const openevePlugin = definePlugin({ connections: [PLUGIN] });
11
+ function arcadsOAuth() {
12
+ return ({ env }) => {
13
+ const clientId = env.ARCADS_MCP_CLIENT_ID?.trim();
14
+ const redirectUri = env.ARCADS_MCP_REDIRECT_URI?.trim();
15
+ if (!clientId) {
16
+ throw new Error("Arcads OAuth requires ARCADS_MCP_CLIENT_ID.");
17
+ }
18
+ return defineOAuthAuthorization({
19
+ displayName: "Arcads",
20
+ authorizeUrl: "https://api.arcads.ai/oauth/authorize",
21
+ tokenUrl: "https://api.arcads.ai/oauth/token",
22
+ clientId,
23
+ scopes: ["mcp", "offline_access"],
24
+ ...(redirectUri ? { redirectUri } : {}),
25
+ authorizationParams: { resource: "https://mcp.arcads.ai" },
26
+ tokenParams: { resource: "https://mcp.arcads.ai" },
27
+ pkce: true
28
+ });
29
+ };
30
+ }
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,YAAY,EAGb,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,GAAG,wBAAwB,CAAC,QAAQ,CAAE,CAAC;AAMnD,MAAM,UA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
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ }
10
+ },
11
+ "dependencies": {
12
+ "@assemblyline-agents/core": "0.1.0"
13
+ },
14
+ "description": "Official OpenEve connection plugin for the Arcads hosted MCP server.",
15
+ "files": [
16
+ "dist",
17
+ "skills"
18
+ ],
19
+ "engines": {
20
+ "node": ">=22.19.0"
21
+ },
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/jasonbadeaux/openeve.git",
26
+ "directory": "packages/arcads"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/jasonbadeaux/openeve/issues"
30
+ },
31
+ "homepage": "https://github.com/jasonbadeaux/openeve#readme",
32
+ "author": "OpenEve contributors",
33
+ "keywords": [
34
+ "openeve",
35
+ "ai",
36
+ "agents",
37
+ "arcads",
38
+ "mcp",
39
+ "video-ads",
40
+ "plugin"
41
+ ],
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "scripts": {
46
+ "build": "tsc -p tsconfig.json",
47
+ "check": "tsc -p tsconfig.json --noEmit"
48
+ }
49
+ }
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: arcads
3
+ description: Analyze, generate, and edit social media ads through the connected Arcads MCP server.
4
+ ---
5
+ # Arcads
6
+
7
+ Use the live Arcads tool catalog instead of assuming a fixed model or operation
8
+ name. Arcads evolves its media models and edit tools; select the tool whose
9
+ current description and schema match the requested input and output modality.
10
+
11
+ Read operations can inspect asset state and retrieve generated results. Upload
12
+ URL creation, analysis, generation, and editing are write operations because
13
+ they can create remote assets or consume credits. Do not start them unless the
14
+ connection exposes write authority and the configured approval gate permits the
15
+ call.
16
+
17
+ For a local image, audio file, or video:
18
+
19
+ 1. Confirm that the user owns or is authorized to transform the source.
20
+ 2. Request an upload URL with the file's exact MIME type.
21
+ 3. Upload the bytes with a host-side HTTP tool; never paste binary data,
22
+ credentials, presigned URLs, or OAuth tokens into a model prompt.
23
+ 4. Pass the returned remote file path to the selected Arcads tool.
24
+ 5. Poll the asset status at a reasonable interval, then retrieve the completed
25
+ result.
26
+
27
+ For social video, preserve the user's requested aspect ratio and duration.
28
+ Default to `9:16` only when the request is clearly for TikTok, Reels, or Shorts.
29
+ Do not generate fake product imagery or logos when the user expects a real
30
+ brand asset. Prefer two or more creative variants only after making the added
31
+ credit cost clear.