@burdenoff/mcp-libs 2026.1007.2 → 2026.1007.4
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 +1 -1
- package/dist/modules/conversations/index.cjs +31 -12
- package/dist/modules/conversations/index.cjs.map +1 -1
- package/dist/modules/conversations/index.js +31 -12
- package/dist/modules/conversations/index.js.map +1 -1
- package/dist/modules/fluidgrids/index.cjs +43 -0
- package/dist/modules/fluidgrids/index.cjs.map +1 -1
- package/dist/modules/fluidgrids/index.js +43 -0
- package/dist/modules/fluidgrids/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -727,6 +727,25 @@ var RETRY_RUN = `
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
`;
|
|
730
|
+
var CREATE_CREDENTIAL = `
|
|
731
|
+
mutation CreateCredential($input: CreateConnectionInput!) {
|
|
732
|
+
createConnection(input: $input) {
|
|
733
|
+
id
|
|
734
|
+
name
|
|
735
|
+
description
|
|
736
|
+
status
|
|
737
|
+
providerId
|
|
738
|
+
provider {
|
|
739
|
+
id
|
|
740
|
+
key
|
|
741
|
+
name
|
|
742
|
+
authType
|
|
743
|
+
}
|
|
744
|
+
credentialSource
|
|
745
|
+
createdAt
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
`;
|
|
730
749
|
var AUTHENTICATE_CREDENTIAL_API_KEY = `
|
|
731
750
|
mutation AuthenticateCredentialApiKey($input: ApiKeyAuthInput!) {
|
|
732
751
|
authenticateWithApiKey(input: $input) {
|
|
@@ -988,6 +1007,30 @@ function registerCredentialTools(server, ctx, track) {
|
|
|
988
1007
|
return jsonResult(data.getProviders);
|
|
989
1008
|
})
|
|
990
1009
|
);
|
|
1010
|
+
server.registerTool(
|
|
1011
|
+
track(mcpToolName(ctx.productName, "credentials_create")),
|
|
1012
|
+
{
|
|
1013
|
+
title: "Create Credential",
|
|
1014
|
+
description: "Create a connection against a provider. Secrets go to the vault; pass a reference, never a raw secret in config.",
|
|
1015
|
+
inputSchema: {
|
|
1016
|
+
name: z.string().describe("Connection name"),
|
|
1017
|
+
providerId: z.string().describe('Provider ID or key (e.g. "openai")'),
|
|
1018
|
+
description: z.string().optional().describe("Description"),
|
|
1019
|
+
config: z.unknown().optional().describe("Non-secret provider config as JSON"),
|
|
1020
|
+
context: z.unknown().optional().describe("Context JSON"),
|
|
1021
|
+
vaultId: z.string().optional().describe("Vault to store secret material in"),
|
|
1022
|
+
credentialSecretId: z.string().optional().describe("Existing vault secret reference"),
|
|
1023
|
+
managedSecretName: z.string().optional().describe("Managed secret name")
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
async (args) => runTool(ctx, "credentials_create", async () => {
|
|
1027
|
+
const data = await ctx.gql.workspace.request(
|
|
1028
|
+
CREATE_CREDENTIAL,
|
|
1029
|
+
{ input: definedInput({ ...args }) }
|
|
1030
|
+
);
|
|
1031
|
+
return jsonResult(data.createConnection);
|
|
1032
|
+
})
|
|
1033
|
+
);
|
|
991
1034
|
server.registerTool(
|
|
992
1035
|
track(mcpToolName(ctx.productName, "credentials_update")),
|
|
993
1036
|
{
|