• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase-community / supabase-mcp / 16727694595

04 Aug 2025 03:41PM UTC coverage: 96.357% (+0.03%) from 96.328%
16727694595

push

github

web-flow
Merge pull request #119 from supabase-community/charis/user-agent

fix: add user-agent string to content api requests

225 of 244 branches covered (92.21%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 3 files covered. (100.0%)

2076 of 2144 relevant lines covered (96.83%)

34.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.24
/packages/mcp-server-supabase/src/tools/development-tools.ts
1
import { z } from 'zod';
2✔
2
import type { SupabasePlatform } from '../platform/types.js';
3
import { injectableTool } from './util.js';
4

5
export type DevelopmentToolsOptions = {
6
  platform: SupabasePlatform;
7
  projectId?: string;
8
};
9

10
export function getDevelopmentTools({
2✔
11
  platform,
73✔
12
  projectId,
73✔
13
}: DevelopmentToolsOptions) {
73✔
14
  const project_id = projectId;
73✔
15

16
  return {
73✔
17
    get_project_url: injectableTool({
73✔
18
      description: 'Gets the API URL for a project.',
73✔
19
      parameters: z.object({
73✔
20
        project_id: z.string(),
73✔
21
      }),
73✔
22
      inject: { project_id },
73✔
23
      execute: async ({ project_id }) => {
73✔
24
        return platform.getProjectUrl(project_id);
1✔
25
      },
1✔
26
    }),
73✔
27
    get_anon_key: injectableTool({
73✔
28
      description: 'Gets the anonymous API key for a project.',
73✔
29
      parameters: z.object({
73✔
30
        project_id: z.string(),
73✔
31
      }),
73✔
32
      inject: { project_id },
73✔
33
      execute: async ({ project_id }) => {
73✔
34
        return platform.getAnonKey(project_id);
1✔
35
      },
1✔
36
    }),
73✔
37
    generate_typescript_types: injectableTool({
73✔
38
      description: 'Generates TypeScript types for a project.',
73✔
39
      parameters: z.object({
73✔
40
        project_id: z.string(),
73✔
41
      }),
73✔
42
      inject: { project_id },
73✔
43
      execute: async ({ project_id }) => {
73✔
44
        return platform.generateTypescriptTypes(project_id);
×
45
      },
×
46
    }),
73✔
47
  };
73✔
48
}
73✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc