@codeam/shared 2.61.44 → 2.61.46

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/dist/index.mjs CHANGED
@@ -827,6 +827,98 @@ var INTEGRATION_REGISTRY = {
827
827
  }
828
828
  }
829
829
  },
830
+ posthog: {
831
+ id: "posthog",
832
+ name: "PostHog",
833
+ icon: "posthog",
834
+ category: "observability",
835
+ // LIVE — api_key: the user pastes a PostHog Personal API Key (phx_…, created
836
+ // with the "MCP Server" preset). PostHog's MCP is HOSTED-ONLY
837
+ // (mcp.posthog.com) over HTTP, and its stdio bridge (mcp-remote) forces its
838
+ // own browser OAuth — incompatible with our headless broker. So delivery
839
+ // uses the shim's HTTP transport: it relays to the hosted MCP with the key
840
+ // as a Bearer header (exactly Cursor's {url, headers} config). No OAuth, no
841
+ // GSM secret; a backend VALIDATOR proves the key + vaults it.
842
+ enabled: true,
843
+ auth: {
844
+ kind: "api_key",
845
+ fields: [
846
+ {
847
+ key: "accessToken",
848
+ label: "Personal API Key",
849
+ placeholder: "phx_xxxxxxxxxxxxxxxx",
850
+ secret: true,
851
+ help: 'PostHog \u2192 Settings \u2192 Personal API keys \u2192 create with the "MCP Server" preset (scopes it to a project).'
852
+ }
853
+ ]
854
+ },
855
+ delivery: {
856
+ mcp: {
857
+ // HTTP transport (not a spawned stdio server) — the shim relays to
858
+ // PostHog's hosted MCP with the key as a Bearer header. The key stays
859
+ // server-side of the shim, never on argv.
860
+ command: "",
861
+ args: [],
862
+ envMapping: {},
863
+ httpUrl: "https://mcp.posthog.com/mcp",
864
+ httpHeaders: { Authorization: "Bearer {accessToken}" }
865
+ }
866
+ }
867
+ },
868
+ datadog: {
869
+ id: "datadog",
870
+ name: "Datadog",
871
+ icon: "datadog",
872
+ category: "observability",
873
+ // LIVE — api_key: the user pastes a Datadog API key (org-scoped) + an
874
+ // Application key (user-scoped, grants the read scopes) + their regional
875
+ // site. Datadog's OFFICIAL hosted MCP (mcp.<site>) accepts these as headers
876
+ // headless (verified) — no OAuth, no GSM secret. Delivery uses the shim's
877
+ // HTTP transport with the site templated into the URL and both keys sent as
878
+ // DD-API-KEY / DD-APPLICATION-KEY headers.
879
+ enabled: true,
880
+ auth: {
881
+ kind: "api_key",
882
+ fields: [
883
+ {
884
+ key: "accessToken",
885
+ label: "API Key",
886
+ placeholder: "Datadog API key",
887
+ secret: true,
888
+ help: "Organization API key \u2014 Datadog \u2192 Organization Settings \u2192 API Keys."
889
+ },
890
+ {
891
+ key: "appKey",
892
+ label: "Application Key",
893
+ placeholder: "Datadog application key",
894
+ secret: true,
895
+ help: "User Application key (grants the read scopes) \u2014 Datadog \u2192 Organization Settings \u2192 Application Keys."
896
+ },
897
+ {
898
+ key: "host",
899
+ label: "Site",
900
+ placeholder: "datadoghq.com",
901
+ secret: false,
902
+ help: "Your Datadog site \u2014 US1: datadoghq.com \xB7 EU: datadoghq.eu \xB7 US3: us3.datadoghq.com \xB7 US5: us5.datadoghq.com \xB7 AP1: ap1.datadoghq.com."
903
+ }
904
+ ]
905
+ },
906
+ delivery: {
907
+ mcp: {
908
+ // HTTP transport — the shim relays to Datadog's hosted MCP for the
909
+ // user's site, with both keys as headers. Keys stay server-side of the
910
+ // shim, never on argv.
911
+ command: "",
912
+ args: [],
913
+ envMapping: {},
914
+ httpUrl: "https://mcp.{host}/api/unstable/mcp-server/mcp",
915
+ httpHeaders: {
916
+ "DD-API-KEY": "{accessToken}",
917
+ "DD-APPLICATION-KEY": "{appKey}"
918
+ }
919
+ }
920
+ }
921
+ },
830
922
  notion: {
831
923
  id: "notion",
832
924
  name: "Notion",
@@ -1231,7 +1323,6 @@ var INTEGRATION_BRANDING = {
1231
1323
  };
1232
1324
  var UPCOMING_INTEGRATION_IDS = [
1233
1325
  "gmail",
1234
- "posthog",
1235
1326
  "clickup",
1236
1327
  "figma",
1237
1328
  "trello",
@@ -1244,8 +1335,7 @@ var UPCOMING_INTEGRATION_IDS = [
1244
1335
  "mixpanel",
1245
1336
  "pendo",
1246
1337
  "pagerduty",
1247
- "amplitude",
1248
- "datadog"
1338
+ "amplitude"
1249
1339
  ];
1250
1340
  function getIntegrationBranding(id) {
1251
1341
  return INTEGRATION_BRANDING[id] ?? null;