@skilder-ai/runtime 0.10.0 → 0.10.1

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.js CHANGED
@@ -150588,7 +150588,10 @@ var installServerSchema = external_exports.object({
150588
150588
  config: external_exports.record(external_exports.string(), external_exports.unknown()).describe(
150589
150589
  "Configuration object from prepare_mcp_config output \u2014 secret fields will be empty and filled in later via the Skilder UI"
150590
150590
  ),
150591
- oauthProvider: external_exports.enum(OAUTH_PROVIDER_VALUES).optional().describe("OAuth provider if this server requires OAuth")
150591
+ oauthProvider: external_exports.enum(OAUTH_PROVIDER_VALUES).optional().describe("OAuth provider if this server requires OAuth"),
150592
+ useOAuth: external_exports.boolean().optional().describe(
150593
+ "Set to false for a remote server that authenticates with a credential carried in the config (an Authorization header, a personal access token). Skilder then skips OAuth discovery, so the server works immediately instead of asking each user to connect an account. Leave unset to let Skilder detect and use OAuth when the server advertises it. Cannot be combined with oauthProvider."
150594
+ )
150592
150595
  });
150593
150596
  var installServerOutputSchema = external_exports.object({
150594
150597
  id: external_exports.string().describe("ID of the created server"),
@@ -150602,6 +150605,7 @@ var CREATE_MCP_SERVER_MUTATION = `
150602
150605
  $transport: MCPTransportType!
150603
150606
  $config: String!
150604
150607
  $oauthProvider: OAuthProviderType
150608
+ $useOAuth: Boolean
150605
150609
  ) {
150606
150610
  createMCPServer(
150607
150611
  name: $name
@@ -150610,6 +150614,7 @@ var CREATE_MCP_SERVER_MUTATION = `
150610
150614
  transport: $transport
150611
150615
  config: $config
150612
150616
  oauthProvider: $oauthProvider
150617
+ useOAuth: $useOAuth
150613
150618
  ) {
150614
150619
  id
150615
150620
  name
@@ -150649,7 +150654,8 @@ var installServerTool = {
150649
150654
  repositoryUrl: args.repositoryUrl,
150650
150655
  transport,
150651
150656
  config: configJson,
150652
- oauthProvider: args.oauthProvider
150657
+ oauthProvider: args.oauthProvider,
150658
+ useOAuth: args.useOAuth
150653
150659
  },
150654
150660
  userKey
150655
150661
  );
@@ -150779,7 +150785,8 @@ var MANAGER_SKILLS = [
150779
150785
  description: "Prepare configuration for and install external MCP servers into a workspace.",
150780
150786
  instructions: [
150781
150787
  "prepare_mcp_config validates and shapes an MCP server config before install_mcp_server actually registers it \u2014 always run prepare_mcp_config first and review its output.",
150782
- "- Installing a server workspace-wide affects every member with access to it; double-check the target workspace before install_mcp_server."
150788
+ "- Installing a server workspace-wide affects every member with access to it; double-check the target workspace before install_mcp_server.",
150789
+ "- Many remote servers advertise OAuth but also accept a token (an Authorization header, a PAT). When the config carries such a credential, pass useOAuth=false to install_mcp_server: the server then works immediately instead of asking every member to connect an account. Leave useOAuth unset to use the server's OAuth, and never combine it with oauthProvider."
150783
150790
  ].join("\n"),
150784
150791
  tools: adminToolGroups.mcpServers
150785
150792
  }
@@ -159935,7 +159942,7 @@ ToolServerService = __decorate20([
159935
159942
  __metadata19("design:paramtypes", [typeof (_a44 = typeof import_pino2.default !== "undefined" && import_pino2.default.Logger) === "function" ? _a44 : Object, typeof (_b34 = typeof dgraph_resolvers_types_exports !== "undefined" && dgraph_resolvers_types_exports.McpServer) === "function" ? _b34 : Object, Array, typeof (_c10 = typeof Record !== "undefined" && Record) === "function" ? _c10 : Object, Object])
159936
159943
  ], ToolServerService);
159937
159944
  var getConfigSignature = (config2, roots) => {
159938
- return `${config2.transport}-${config2.config}-${roots.length}`;
159945
+ return `${config2.transport}-${config2.config}-${config2.oauthProvider ?? "no-oauth"}-${roots.length}`;
159939
159946
  };
159940
159947
 
159941
159948
  // src/services/oauth-token.service.ts