Skip to content
Merged
Show file tree
Hide file tree
Changes from 106 commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
7160017
init
viktormarinho Nov 24, 2025
c5adaa8
Add drizzle ORM and related configurations
viktormarinho Nov 25, 2025
b80b539
wip
viktormarinho Nov 25, 2025
87392d7
init
viktormarinho Nov 24, 2025
e67a822
Add drizzle ORM and related configurations
viktormarinho Nov 25, 2025
316a1d7
wip
viktormarinho Nov 25, 2025
a16b888
Merge branch 'vibecoding-toolkit' of https://github.com/decocms/mcps …
pedrofrxncx Nov 26, 2025
dfd852c
Refactor database integration and remove unused drizzle configurations
viktormarinho Nov 26, 2025
c5428d8
Update wrangler.toml and deco.gen.ts for enhanced Deco Chat integration
viktormarinho Nov 26, 2025
af5a636
assume postgres binding
viktormarinho Nov 26, 2025
bcef43d
Merge branch 'vibecoding-toolkit' of https://github.com/decocms/mcps …
pedrofrxncx Nov 27, 2025
f05883b
Merge branch 'vibecoding-toolkit' of https://github.com/decocms/mcps …
pedrofrxncx Nov 27, 2025
f5c9f9d
fmt
pedrofrxncx Nov 27, 2025
f39285c
Merge branch 'main' of https://github.com/decocms/mcps into vibecodin…
pedrofrxncx Nov 27, 2025
3e61dbc
Implement CF Sandbox package for secure JavaScript execution
pedrofrxncx Nov 27, 2025
6ab2df2
Enhance workflow execution with input resolution and context management
pedrofrxncx Nov 27, 2025
98f3cdb
init
viktormarinho Nov 24, 2025
f99e527
Add drizzle ORM and related configurations
viktormarinho Nov 25, 2025
cbe2cf1
wip
viktormarinho Nov 25, 2025
6c46bdb
Refactor database integration and remove unused drizzle configurations
viktormarinho Nov 26, 2025
30d010f
Update wrangler.toml and deco.gen.ts for enhanced Deco Chat integration
viktormarinho Nov 26, 2025
edf69d9
assume postgres binding
viktormarinho Nov 26, 2025
b6e1478
Add cfm workspace and update dependencies
viniciusventura29 Nov 25, 2025
6a425a1
Refactor DataForSEO tools to utilize environment-based client creation
viniciusventura29 Nov 25, 2025
a9a2b57
init
viktormarinho Nov 24, 2025
c4896c0
Add drizzle ORM and related configurations
viktormarinho Nov 25, 2025
014a646
Refactor database integration and remove unused drizzle configurations
viktormarinho Nov 26, 2025
153e819
wi
tlgimenes Nov 28, 2025
0d8975b
Add workflow execution enhancements and new documentation
pedrofrxncx Nov 29, 2025
5fe461c
fmt
pedrofrxncx Nov 29, 2025
ec3bb18
Merge branch 'vibecoding-toolkit' of https://github.com/decocms/mcps …
pedrofrxncx Nov 29, 2025
6d93036
Enhance workflow execution and database integration
pedrofrxncx Nov 29, 2025
9c953ea
Refactor database utility functions and update imports
pedrofrxncx Nov 29, 2025
6c13f9e
Add use-sync-external-store dependency and enhance workflow components
pedrofrxncx Nov 30, 2025
efb4480
bun.lock
tlgimenes Dec 1, 2025
f5de2c5
bump deps
tlgimenes Dec 2, 2025
3c70913
wip
pedrofrxncx Dec 2, 2025
2c1c50e
wip
pedrofrxncx Dec 2, 2025
626f0bf
Merge branch 'main' of https://github.com/decocms/mcps into vibecodin…
pedrofrxncx Dec 2, 2025
b125840
Refactor collection tool naming convention
viniciusventura29 Dec 2, 2025
8194024
Use new runtime version
mcandeia Dec 2, 2025
8ddc98e
wip
pedrofrxncx Dec 2, 2025
25ad258
Merge branch 'vibecoding-toolkit' of https://github.com/decocms/mcps …
pedrofrxncx Dec 3, 2025
05195cc
wip
pedrofrxncx Dec 3, 2025
409f044
Merge branch 'main' of https://github.com/decocms/mcps into vibecodin…
pedrofrxncx Dec 3, 2025
50ffce9
wip
pedrofrxncx Dec 4, 2025
6baf2ac
wip
pedrofrxncx Dec 4, 2025
8c7ef59
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 4, 2025
2d72ebb
wip
pedrofrxncx Dec 4, 2025
9cda0c5
wip
pedrofrxncx Dec 5, 2025
d10580d
wip
pedrofrxncx Dec 5, 2025
80a5678
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 5, 2025
5b9fcad
wip
pedrofrxncx Dec 5, 2025
ab2bb39
wip
pedrofrxncx Dec 6, 2025
6eca10a
wip
pedrofrxncx Dec 8, 2025
1ce96a4
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 8, 2025
50279b8
fmt
pedrofrxncx Dec 8, 2025
be33907
wip
pedrofrxncx Dec 11, 2025
bd42a7c
rm
pedrofrxncx Dec 11, 2025
131491c
wip
pedrofrxncx Dec 12, 2025
c5c015f
wip
pedrofrxncx Dec 12, 2025
650fe0b
wip
pedrofrxncx Dec 12, 2025
e06d0c3
wip
pedrofrxncx Dec 12, 2025
b1651ab
wip
pedrofrxncx Dec 12, 2025
9109a42
wip
pedrofrxncx Dec 12, 2025
d68d92d
wip
pedrofrxncx Dec 14, 2025
50d4aff
wip2
pedrofrxncx Dec 19, 2025
901036d
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 20, 2025
8009969
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 20, 2025
a9c5ddf
wip
pedrofrxncx Dec 20, 2025
a29d102
wip
pedrofrxncx Dec 16, 2025
b9571db
wip
pedrofrxncx Dec 21, 2025
24809c9
Merge branch 'whatsapp' into durable-mcp
pedrofrxncx Dec 21, 2025
1a8f0ed
a
pedrofrxncx Dec 21, 2025
228b27c
wip
pedrofrxncx Dec 21, 2025
81c6bea
Merge branch 'whatsapp' into durable-mcp
pedrofrxncx Dec 21, 2025
d2e1684
wip
pedrofrxncx Dec 22, 2025
2271cba
wip
pedrofrxncx Dec 23, 2025
1e5fbde
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 23, 2025
4a9487c
wip
pedrofrxncx Dec 23, 2025
e022b4e
wip
pedrofrxncx Dec 23, 2025
d1a6816
wip
pedrofrxncx Dec 23, 2025
b53ff23
clean
pedrofrxncx Dec 23, 2025
0b113b9
wip
pedrofrxncx Dec 23, 2025
002da2e
wi
pedrofrxncx Dec 23, 2025
66a7271
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 23, 2025
386db83
wip
pedrofrxncx Dec 23, 2025
f6c0de4
wip
pedrofrxncx Dec 23, 2025
81da4bc
wip
pedrofrxncx Dec 24, 2025
861cc5c
wip
pedrofrxncx Dec 24, 2025
b2de0ae
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 24, 2025
d5fcb42
Refactor execution update logic and error handling in workflow execut…
pedrofrxncx Dec 26, 2025
7b353e9
wip
pedrofrxncx Dec 27, 2025
efbe5a7
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 29, 2025
c1c739b
a
pedrofrxncx Dec 29, 2025
32bdd07
Merge branch 'main'
tlgimenes Dec 29, 2025
57c4ef4
fix assistant table creation
tlgimenes Dec 29, 2025
4a5ca29
Merge branch 'durable-mcp' of https://github.com/decocms/mcps into du…
pedrofrxncx Dec 29, 2025
79478f6
Update dependencies and refactor execution logic
pedrofrxncx Dec 29, 2025
020624a
binding compliant
tlgimenes Dec 29, 2025
e82a606
wip
pedrofrxncx Dec 29, 2025
29d3f7c
Merge branch 'durable-mcp' of https://github.com/decocms/mcps into du…
pedrofrxncx Dec 29, 2025
090da0f
Refactor step execution logic by removing timeout handling from `exec…
pedrofrxncx Dec 30, 2025
c25bc47
wip
pedrofrxncx Dec 30, 2025
3850ba0
feat: enhance Discord Bot functionality with new command routes and c…
JonasJesus42 Dec 30, 2025
d835b34
refactor(meta-ads): replace OAuth with direct token authentication
JonasJesus42 Dec 30, 2025
49be5a8
feat(meta-ads): add state configuration for access token
JonasJesus42 Dec 30, 2025
b688799
wip
pedrofrxncx Dec 30, 2025
c49cde0
wip
pedrofrxncx Dec 30, 2025
9373564
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 30, 2025
b34caa5
merge
pedrofrxncx Dec 30, 2025
ab94eea
merge
pedrofrxncx Dec 30, 2025
27da5de
rvert
pedrofrxncx Dec 30, 2025
dee928c
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 30, 2025
2a346a8
Merge branch 'main' of https://github.com/decocms/mcps into durable-mcp
pedrofrxncx Dec 31, 2025
efef089
wip
pedrofrxncx Dec 31, 2025
e5155fe
Fixing warning/errors
mcandeia Dec 31, 2025
2a62a6c
Fixed response error
mcandeia Dec 31, 2025
508e0fd
Bump MCP protocol sdk version
mcandeia Dec 31, 2025
bb91b6c
Fix formatting
mcandeia Dec 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 101 additions & 29 deletions bun.lock

Large diffs are not rendered by default.

617 changes: 617 additions & 0 deletions connection-binding/app.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions mcp-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "bun run --hot server/main.ts",
"dev": "PORT=8002 bun run --hot server/main.ts",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert?

"configure": "deco configure",
"gen": "deco gen --output=shared/deco.gen.ts",
"check": "tsc --noEmit",
Expand All @@ -14,40 +14,40 @@
"publish": "cat app.json | deco registry publish -w /shared/deco -y"
},
"dependencies": {
"@decocms/bindings": "1.0.1-alpha.26",
"@decocms/runtime": "1.0.0-alpha.31",
"@ai-sdk/mcp": "^1.0.1",
"@decocms/bindings": "file:../../mesh/packages/bindings",
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Local file references (file:../../mesh/packages/...) point to paths outside the repository that don't exist. This will break package installation in CI/CD and for other developers. Consider using the original npm package versions, workspace references, or ensuring the path exists in the monorepo structure.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At mcp-studio/package.json, line 18:

<comment>Local file references (`file:../../mesh/packages/...`) point to paths outside the repository that don&#39;t exist. This will break package installation in CI/CD and for other developers. Consider using the original npm package versions, workspace references, or ensuring the path exists in the monorepo structure.</comment>

<file context>
@@ -14,40 +14,40 @@
-    &quot;@decocms/bindings&quot;: &quot;1.0.1-alpha.26&quot;,
-    &quot;@decocms/runtime&quot;: &quot;1.0.0-alpha.31&quot;,
+    &quot;@ai-sdk/mcp&quot;: &quot;^1.0.1&quot;,
+    &quot;@decocms/bindings&quot;: &quot;file:../../mesh/packages/bindings&quot;,
+    &quot;@decocms/runtime&quot;: &quot;file:../../mesh/packages/runtime&quot;,
+    &quot;@jitl/quickjs-wasmfile-release-sync&quot;: &quot;^0.31.0&quot;,
</file context>

✅ Addressed in b34caa5

"@decocms/runtime": "file:../../mesh/packages/runtime",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

"@jitl/quickjs-wasmfile-release-sync": "^0.31.0",
"@modelcontextprotocol/sdk": "^1.25.1",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-slot": "^1.2.3",
"@tailwindcss/vite": "^4.0.6",
"@tanstack/react-query": "^5.66.5",
"@tanstack/react-router": "^1.121.2",
"@tanstack/react-router-devtools": "^1.121.2",
"@types/prettier": "^3.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.554.0",
"next-themes": "^0.4.6",
"prettier": "^3.7.3",
"quickjs-emscripten": "^0.31.0",
"quickjs-emscripten-core": "^0.31.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sonner": "^2.0.7",
"sucrase": "^3.35.0",
"tailwind-merge": "^3.0.2",
"tailwindcss": "^4.0.6",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.24.3"
},
"devDependencies": {
"@decocms/vite-plugin": "1.0.0-alpha.1",
"@modelcontextprotocol/sdk": "1.20.2",
"@types/mime-db": "^1.43.6",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
"concurrently": "^9.2.0",
"deco-cli": "^0.28.0",
"typescript": "^5.7.2",
"vite": "7.2.0"
"typescript": "^5.7.2"
},
"engines": {
"node": ">=22.0.0"
}
}
}
60 changes: 60 additions & 0 deletions mcp-studio/server/db/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import { runSQL } from "./postgres.ts";
import { postgresQueries } from "./schemas/workflow.ts";
import type { Env } from "../types/env.ts";

/**
* Collection queries for database table creation.
*
* Note: Only 'agents' and 'workflows' are true collections with MCP tools.
* 'workflow_execution', 'workflow_execution_step_result', and 'workflow_event'
* are internal engine tables managed by direct database functions.
*/
const collectionsQueries = {
workflow_collections: {
idempotent: postgresQueries.workflowCollectionTableIdempotentQuery,
indexes: postgresQueries.workflowCollectionTableIndexesQuery,
},
workflows: {
idempotent: postgresQueries.workflowTableIdempotentQuery,
indexes: postgresQueries.workflowTableIndexesQuery,
},
// Internal engine tables (not collections, no MCP tools)
workflow_executions: {
idempotent: postgresQueries.workflowExecutionTableIdempotentQuery,
indexes: postgresQueries.workflowExecutionTableIndexesQuery,
},
execution_step_results: {
idempotent: postgresQueries.executionStepResultsTableIdempotentQuery,
indexes: postgresQueries.executionStepResultsTableIndexesQuery,
},
workflow_events: {
idempotent: postgresQueries.workflowEventsTableIdempotentQuery,
indexes: postgresQueries.workflowEventsTableIndexesQuery,
},
};

async function ensureCollections(env: Env) {
for (const collection of Object.values(collectionsQueries)) {
try {
await runSQL(env, collection.idempotent);
} catch (error) {
console.error(
`Error ensuring collection ${collection.idempotent}`,
error,
);
throw error;
}
}
}

async function ensureIndexes(env: Env) {
for (const collection of Object.values(collectionsQueries)) {
try {
await runSQL(env, collection.indexes);
} catch (error) {
console.error(`Error ensuring indexes ${collection.indexes}`, error);
}
}
}

export { collectionsQueries, ensureCollections, ensureIndexes };
26 changes: 26 additions & 0 deletions mcp-studio/server/db/postgres.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* PostgreSQL Database Module
*
* Generic SQL runner using the DATABASE binding.
*/

import type { Env } from "../types/env.ts";

/**
* Run a SQL query using the DATABASE binding
* @param env - The environment containing the DATABASE binding
* @param sql - SQL query with ? placeholders
* @param params - Parameters to substitute for ? placeholders
* @returns The query results as an array of rows
*/
export async function runSQL<T = unknown>(
env: Env,
sql: string,
params: unknown[] = [],
): Promise<T[]> {
const response = await env.DATABASE.DATABASES_RUN_SQL({
sql,
params,
});
return (response.result[0]?.results ?? []) as T[];
}
Loading