@ampless/mcp-server 0.2.0-alpha.0 → 0.2.0-alpha.2

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.
Files changed (37) hide show
  1. package/dist/bowser-WRHMEFK3.js +2822 -0
  2. package/dist/chunk-3NCQATCK.js +1385 -0
  3. package/dist/chunk-5PA6IP7O.js +435 -0
  4. package/dist/{chunk-27JGNXJE.js → chunk-6OXXSXKN.js} +8 -37
  5. package/dist/{chunk-YDYRXGHR.js → chunk-A4YPJIDF.js} +3 -3
  6. package/dist/chunk-CVNCRUML.js +1355 -0
  7. package/dist/chunk-IKXKDSVH.js +1414 -0
  8. package/dist/chunk-ISXSZYT4.js +1375 -0
  9. package/dist/{chunk-GSC7CBT2.js → chunk-IW52OUIR.js} +117 -1025
  10. package/dist/chunk-QBXY5RRO.js +3559 -0
  11. package/dist/chunk-UMEQ5ALV.js +14 -0
  12. package/dist/{chunk-OLRXGK7L.js → chunk-YHHXORQ4.js} +48 -32
  13. package/dist/{dist-es-J7V6TEWZ.js → dist-es-3P7CNKGV.js} +15 -16
  14. package/dist/{dist-es-6QUIY4X7.js → dist-es-NAMW5ZZ4.js} +21 -31
  15. package/dist/{dist-es-MQG4P6NF.js → dist-es-OI6XP2CN.js} +9 -10
  16. package/dist/{dist-es-W5H6GQXM.js → dist-es-OO5RVJZO.js} +10 -11
  17. package/dist/{dist-es-NGSDZSP2.js → dist-es-PRQWND46.js} +4 -3
  18. package/dist/{dist-es-2HK4JUU7.js → dist-es-T6J3WJJK.js} +32 -36
  19. package/dist/{dist-es-OYHIBJO3.js → dist-es-ZP52SD4G.js} +27 -32
  20. package/dist/event-streams-WFL2DK34.js +43 -0
  21. package/dist/index.js +2061 -2633
  22. package/dist/{loadSso-3FWOSWL4.js → loadSso-C2Y2WOQK.js} +56 -58
  23. package/dist/{signin-EATRRDTG.js → signin-IY5CLTYR.js} +59 -63
  24. package/dist/{sso-oidc-5GRHV5HA.js → sso-oidc-KZTDOR7Y.js} +59 -63
  25. package/dist/{sts-IMPWC7YM.js → sts-2UABQZ6D.js} +625 -740
  26. package/package.json +3 -3
  27. package/dist/chunk-44FZZOIP.js +0 -14
  28. package/dist/chunk-72G5HA35.js +0 -62
  29. package/dist/chunk-B57O737J.js +0 -52
  30. package/dist/chunk-E6YHJFDU.js +0 -44
  31. package/dist/chunk-FCBONYCH.js +0 -6008
  32. package/dist/chunk-GBNV7FEX.js +0 -164
  33. package/dist/chunk-MQF5MXOW.js +0 -1040
  34. package/dist/chunk-NZ2AQICN.js +0 -29
  35. package/dist/chunk-YVOTBVHL.js +0 -243
  36. package/dist/chunk-ZB7FTU7J.js +0 -39
  37. package/dist/event-streams-6T3GMAVH.js +0 -253
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/mcp-server",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.0-alpha.2",
4
4
  "description": "MCP server for ampless — lets AI agents (Claude Desktop, Cursor, Claude Code) read and write posts and media via AppSync",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,9 +29,9 @@
29
29
  "bugs": "https://github.com/heavymoons/ampless/issues",
30
30
  "dependencies": {
31
31
  "@modelcontextprotocol/sdk": "^1.0.0",
32
- "@aws-sdk/client-s3": "^3.717.0",
32
+ "@aws-sdk/client-s3": "^3.1048.0",
33
33
  "amazon-cognito-identity-js": "^6.3.12",
34
- "ampless": "0.2.0-alpha.0"
34
+ "ampless": "0.2.0-alpha.2"
35
35
  },
36
36
  "keywords": [
37
37
  "ampless",
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../../node_modules/.pnpm/@aws-sdk+core@3.974.7/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js
4
- function setCredentialFeature(credentials, feature, value) {
5
- if (!credentials.$source) {
6
- credentials.$source = {};
7
- }
8
- credentials.$source[feature] = value;
9
- return credentials;
10
- }
11
-
12
- export {
13
- setCredentialFeature
14
- };
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../../node_modules/.pnpm/@smithy+protocol-http@5.3.14/node_modules/@smithy/protocol-http/dist-es/httpRequest.js
4
- var HttpRequest = class _HttpRequest {
5
- method;
6
- protocol;
7
- hostname;
8
- port;
9
- path;
10
- query;
11
- headers;
12
- username;
13
- password;
14
- fragment;
15
- body;
16
- constructor(options) {
17
- this.method = options.method || "GET";
18
- this.hostname = options.hostname || "localhost";
19
- this.port = options.port;
20
- this.query = options.query || {};
21
- this.headers = options.headers || {};
22
- this.body = options.body;
23
- this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
24
- this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
25
- this.username = options.username;
26
- this.password = options.password;
27
- this.fragment = options.fragment;
28
- }
29
- static clone(request) {
30
- const cloned = new _HttpRequest({
31
- ...request,
32
- headers: { ...request.headers }
33
- });
34
- if (cloned.query) {
35
- cloned.query = cloneQuery(cloned.query);
36
- }
37
- return cloned;
38
- }
39
- static isInstance(request) {
40
- if (!request) {
41
- return false;
42
- }
43
- const req = request;
44
- return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
45
- }
46
- clone() {
47
- return _HttpRequest.clone(this);
48
- }
49
- };
50
- function cloneQuery(query) {
51
- return Object.keys(query).reduce((carry, paramName) => {
52
- const param = query[paramName];
53
- return {
54
- ...carry,
55
- [paramName]: Array.isArray(param) ? [...param] : param
56
- };
57
- }, {});
58
- }
59
-
60
- export {
61
- HttpRequest
62
- };
@@ -1,52 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../../node_modules/.pnpm/@smithy+smithy-client@4.12.13/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js
4
- var createAggregatedClient = (commands, Client, options) => {
5
- for (const [command, CommandCtor] of Object.entries(commands)) {
6
- const methodImpl = async function(args, optionsOrCb, cb) {
7
- const command2 = new CommandCtor(args);
8
- if (typeof optionsOrCb === "function") {
9
- this.send(command2, optionsOrCb);
10
- } else if (typeof cb === "function") {
11
- if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
13
- this.send(command2, optionsOrCb || {}, cb);
14
- } else {
15
- return this.send(command2, optionsOrCb);
16
- }
17
- };
18
- const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
19
- Client.prototype[methodName] = methodImpl;
20
- }
21
- const { paginators = {}, waiters = {} } = options ?? {};
22
- for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
23
- if (Client.prototype[paginatorName] === void 0) {
24
- Client.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
25
- return paginatorFn({
26
- ...paginationConfiguration,
27
- client: this
28
- }, commandInput, ...rest);
29
- };
30
- }
31
- }
32
- for (const [waiterName, waiterFn] of Object.entries(waiters)) {
33
- if (Client.prototype[waiterName] === void 0) {
34
- Client.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
35
- let config = waiterConfiguration;
36
- if (typeof waiterConfiguration === "number") {
37
- config = {
38
- maxWaitTime: waiterConfiguration
39
- };
40
- }
41
- return waiterFn({
42
- ...config,
43
- client: this
44
- }, commandInput, ...rest);
45
- };
46
- }
47
- }
48
- };
49
-
50
- export {
51
- createAggregatedClient
52
- };
@@ -1,44 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../../node_modules/.pnpm/@smithy+is-array-buffer@4.2.2/node_modules/@smithy/is-array-buffer/dist-es/index.js
4
- var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
5
-
6
- // ../../node_modules/.pnpm/@smithy+util-buffer-from@4.2.2/node_modules/@smithy/util-buffer-from/dist-es/index.js
7
- import { Buffer } from "buffer";
8
- var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
9
- if (!isArrayBuffer(input)) {
10
- throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
11
- }
12
- return Buffer.from(input, offset, length);
13
- };
14
- var fromString = (input, encoding) => {
15
- if (typeof input !== "string") {
16
- throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
17
- }
18
- return encoding ? Buffer.from(input, encoding) : Buffer.from(input);
19
- };
20
-
21
- // ../../node_modules/.pnpm/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
22
- var fromUtf8 = (input) => {
23
- const buf = fromString(input, "utf8");
24
- return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
25
- };
26
-
27
- // ../../node_modules/.pnpm/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-es/toUtf8.js
28
- var toUtf8 = (input) => {
29
- if (typeof input === "string") {
30
- return input;
31
- }
32
- if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
33
- throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
34
- }
35
- return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
36
- };
37
-
38
- export {
39
- isArrayBuffer,
40
- fromArrayBuffer,
41
- fromString,
42
- fromUtf8,
43
- toUtf8
44
- };