@catchmexz/fedin-vibe-mcp-server 1.2.3 → 1.4.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.
@@ -0,0 +1,26 @@
1
+ import axios from "axios";
2
+ import { SUPABASE_PROJECT_API_BASE } from "../../common/excuteSupabaseQuery.js";
3
+ export async function deleteEdgeFunctionFunc(projectId, slug) {
4
+ try {
5
+ const token = process.env.DEPLOY_ACCESS_TOKEN;
6
+ const response = await axios.delete(`${SUPABASE_PROJECT_API_BASE}/api/supabase-project/edge-functions/delete`, {
7
+ params: {
8
+ projectId,
9
+ slug
10
+ },
11
+ headers: {
12
+ ...(token ? { token } : {})
13
+ }
14
+ });
15
+ const result = response.data;
16
+ if (!result || result.success === false) {
17
+ const errorMessage = result?.message || "delete edge function failed via Supabase Project API";
18
+ throw new Error(errorMessage);
19
+ }
20
+ return result.data;
21
+ }
22
+ catch (error) {
23
+ const errorMessage = error.message || "delete edge function failed";
24
+ throw new Error(errorMessage);
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ import axios from "axios";
2
+ import { SUPABASE_PROJECT_API_BASE } from "../../common/excuteSupabaseQuery.js";
3
+ export async function getEdgeFunctionFunc(projectId, slug) {
4
+ try {
5
+ const token = process.env.DEPLOY_ACCESS_TOKEN;
6
+ const response = await axios.get(`${SUPABASE_PROJECT_API_BASE}/api/supabase-project/edge-functions/get`, {
7
+ params: {
8
+ projectId,
9
+ slug
10
+ },
11
+ headers: {
12
+ ...(token ? { token } : {})
13
+ }
14
+ });
15
+ const result = response.data;
16
+ if (!result || result.success === false) {
17
+ const errorMessage = result?.message || "get edge function failed via Supabase Project API";
18
+ throw new Error(errorMessage);
19
+ }
20
+ return result.data;
21
+ }
22
+ catch (error) {
23
+ const errorMessage = error.message || "get edge function failed";
24
+ throw new Error(errorMessage);
25
+ }
26
+ }
@@ -0,0 +1,25 @@
1
+ import axios from "axios";
2
+ import { SUPABASE_PROJECT_API_BASE } from "../../common/excuteSupabaseQuery.js";
3
+ export async function listMigrationsFunc(projectId) {
4
+ try {
5
+ const token = process.env.DEPLOY_ACCESS_TOKEN;
6
+ const response = await axios.post(`${SUPABASE_PROJECT_API_BASE}/api/supabase-project/migrations/list`, {
7
+ projectId
8
+ }, {
9
+ headers: {
10
+ "Content-Type": "application/json",
11
+ ...(token ? { token } : {})
12
+ }
13
+ });
14
+ const result = response.data;
15
+ if (!result || result.success === false) {
16
+ const errorMessage = result?.message || "list migrations failed via Supabase Project API";
17
+ throw new Error(errorMessage);
18
+ }
19
+ return result.data ?? [];
20
+ }
21
+ catch (error) {
22
+ const errorMessage = error.message || "list migrations failed";
23
+ throw new Error(errorMessage);
24
+ }
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catchmexz/fedin-vibe-mcp-server",
3
- "version": "1.2.3",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"