@cosmonic-labs/openapi2mcp 0.9.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/README.md CHANGED
@@ -7,7 +7,7 @@ Generate MCP server tools from OpenAPI specifications. Works with [mcp-server-te
7
7
  ### Install via npm
8
8
 
9
9
  ```shell
10
- npm install -g openapi2mcp
10
+ npm install -g @cosmonic-labs/openapi2mcp
11
11
  ```
12
12
 
13
13
  Or run directly with npx:
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:cli/environment@0.2.6 **/
1
+ /** @module Interface wasi:cli/environment@0.2.12 **/
2
2
  export function getEnvironment(): Array<[string, string]>;
3
3
  export function getArguments(): Array<string>;
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:cli/exit@0.2.6 **/
1
+ /** @module Interface wasi:cli/exit@0.2.12 **/
2
2
  export function exit(status: Result<void, void>): void;
3
3
  export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
@@ -1,2 +1,2 @@
1
- /** @module Interface wasi:cli/run@0.2.6 **/
1
+ /** @module Interface wasi:cli/run@0.2.0 **/
2
2
  export function run(): void;
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:cli/stderr@0.2.6 **/
1
+ /** @module Interface wasi:cli/stderr@0.2.12 **/
2
2
  export function getStderr(): OutputStream;
3
3
  export type OutputStream = import('./wasi-io-streams.js').OutputStream;
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:cli/stdin@0.2.6 **/
1
+ /** @module Interface wasi:cli/stdin@0.2.12 **/
2
2
  export function getStdin(): InputStream;
3
3
  export type InputStream = import('./wasi-io-streams.js').InputStream;
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:cli/stdout@0.2.6 **/
1
+ /** @module Interface wasi:cli/stdout@0.2.12 **/
2
2
  export function getStdout(): OutputStream;
3
3
  export type OutputStream = import('./wasi-io-streams.js').OutputStream;
@@ -1,4 +1,4 @@
1
- /** @module Interface wasi:cli/terminal-input@0.2.6 **/
1
+ /** @module Interface wasi:cli/terminal-input@0.2.12 **/
2
2
 
3
3
  export class TerminalInput {
4
4
  /**
@@ -1,4 +1,4 @@
1
- /** @module Interface wasi:cli/terminal-output@0.2.6 **/
1
+ /** @module Interface wasi:cli/terminal-output@0.2.12 **/
2
2
 
3
3
  export class TerminalOutput {
4
4
  /**
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:cli/terminal-stderr@0.2.6 **/
1
+ /** @module Interface wasi:cli/terminal-stderr@0.2.12 **/
2
2
  export function getTerminalStderr(): TerminalOutput | undefined;
3
3
  export type TerminalOutput = import('./wasi-cli-terminal-output.js').TerminalOutput;
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:cli/terminal-stdin@0.2.6 **/
1
+ /** @module Interface wasi:cli/terminal-stdin@0.2.12 **/
2
2
  export function getTerminalStdin(): TerminalInput | undefined;
3
3
  export type TerminalInput = import('./wasi-cli-terminal-input.js').TerminalInput;
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:cli/terminal-stdout@0.2.6 **/
1
+ /** @module Interface wasi:cli/terminal-stdout@0.2.12 **/
2
2
  export function getTerminalStdout(): TerminalOutput | undefined;
3
3
  export type TerminalOutput = import('./wasi-cli-terminal-output.js').TerminalOutput;
@@ -0,0 +1,4 @@
1
+ /** @module Interface wasi:clocks/monotonic-clock@0.2.12 **/
2
+ export function subscribeDuration(when: Duration): Pollable;
3
+ export type Duration = bigint;
4
+ export type Pollable = import('./wasi-io-poll.js').Pollable;
@@ -1,4 +1,4 @@
1
- /** @module Interface wasi:clocks/wall-clock@0.2.6 **/
1
+ /** @module Interface wasi:clocks/wall-clock@0.2.12 **/
2
2
  export interface Datetime {
3
3
  seconds: bigint,
4
4
  nanoseconds: number,
@@ -1,3 +1,3 @@
1
- /** @module Interface wasi:filesystem/preopens@0.2.6 **/
1
+ /** @module Interface wasi:filesystem/preopens@0.2.12 **/
2
2
  export function getDirectories(): Array<[Descriptor, string]>;
3
3
  export type Descriptor = import('./wasi-filesystem-types.js').Descriptor;
@@ -1,13 +1,6 @@
1
- /** @module Interface wasi:filesystem/types@0.2.6 **/
2
- export function filesystemErrorCode(err: Error): ErrorCode | undefined;
3
- export interface DescriptorFlags {
4
- read?: boolean,
5
- write?: boolean,
6
- fileIntegritySync?: boolean,
7
- dataIntegritySync?: boolean,
8
- requestedWriteSync?: boolean,
9
- mutateDirectory?: boolean,
10
- }
1
+ /** @module Interface wasi:filesystem/types@0.2.12 **/
2
+ export type Filesize = bigint;
3
+ export type InputStream = import('./wasi-io-streams.js').InputStream;
11
4
  /**
12
5
  * # Variants
13
6
  *
@@ -86,7 +79,15 @@ export interface DescriptorFlags {
86
79
  * ## `"cross-device"`
87
80
  */
88
81
  export type ErrorCode = 'access' | 'would-block' | 'already' | 'bad-descriptor' | 'busy' | 'deadlock' | 'quota' | 'exist' | 'file-too-large' | 'illegal-byte-sequence' | 'in-progress' | 'interrupted' | 'invalid' | 'io' | 'is-directory' | 'loop' | 'too-many-links' | 'message-size' | 'name-too-long' | 'no-device' | 'no-entry' | 'no-lock' | 'insufficient-memory' | 'insufficient-space' | 'not-directory' | 'not-empty' | 'not-recoverable' | 'unsupported' | 'no-tty' | 'no-such-device' | 'overflow' | 'not-permitted' | 'pipe' | 'read-only' | 'invalid-seek' | 'text-file-busy' | 'cross-device';
89
- export type Error = import('./wasi-io-streams.js').Error;
82
+ export type OutputStream = import('./wasi-io-streams.js').OutputStream;
83
+ export interface DescriptorFlags {
84
+ read?: boolean,
85
+ write?: boolean,
86
+ fileIntegritySync?: boolean,
87
+ dataIntegritySync?: boolean,
88
+ requestedWriteSync?: boolean,
89
+ mutateDirectory?: boolean,
90
+ }
90
91
  /**
91
92
  * # Variants
92
93
  *
@@ -107,15 +108,7 @@ export type Error = import('./wasi-io-streams.js').Error;
107
108
  * ## `"socket"`
108
109
  */
109
110
  export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
110
- export interface DirectoryEntry {
111
- type: DescriptorType,
112
- name: string,
113
- }
114
- export interface PathFlags {
115
- symlinkFollow?: boolean,
116
- }
117
111
  export type LinkCount = bigint;
118
- export type Filesize = bigint;
119
112
  export type Datetime = import('./wasi-clocks-wall-clock.js').Datetime;
120
113
  export interface DescriptorStat {
121
114
  type: DescriptorType,
@@ -125,18 +118,23 @@ export interface DescriptorStat {
125
118
  dataModificationTimestamp?: Datetime,
126
119
  statusChangeTimestamp?: Datetime,
127
120
  }
121
+ export interface PathFlags {
122
+ symlinkFollow?: boolean,
123
+ }
128
124
  export interface OpenFlags {
129
125
  create?: boolean,
130
126
  directory?: boolean,
131
127
  exclusive?: boolean,
132
128
  truncate?: boolean,
133
129
  }
134
- export type InputStream = import('./wasi-io-streams.js').InputStream;
135
- export type OutputStream = import('./wasi-io-streams.js').OutputStream;
136
130
  export interface MetadataHashValue {
137
131
  lower: bigint,
138
132
  upper: bigint,
139
133
  }
134
+ export interface DirectoryEntry {
135
+ type: DescriptorType,
136
+ name: string,
137
+ }
140
138
 
141
139
  export class Descriptor {
142
140
  /**
@@ -147,7 +145,6 @@ export class Descriptor {
147
145
  writeViaStream(offset: Filesize): OutputStream;
148
146
  appendViaStream(): OutputStream;
149
147
  getFlags(): DescriptorFlags;
150
- getType(): DescriptorType;
151
148
  readDirectory(): DirectoryEntryStream;
152
149
  stat(): DescriptorStat;
153
150
  statAt(pathFlags: PathFlags, path: string): DescriptorStat;
@@ -1,9 +1,8 @@
1
- /** @module Interface wasi:io/error@0.2.6 **/
1
+ /** @module Interface wasi:io/error@0.2.12 **/
2
2
 
3
3
  export class Error {
4
4
  /**
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
- toDebugString(): string;
9
8
  }
@@ -1,8 +1,10 @@
1
- /** @module Interface wasi:io/poll@0.2.6 **/
1
+ /** @module Interface wasi:io/poll@0.2.12 **/
2
+ export function poll(in_: Array<Pollable>): Uint32Array;
2
3
 
3
4
  export class Pollable {
4
5
  /**
5
6
  * This type does not have a public constructor.
6
7
  */
7
8
  private constructor();
9
+ block(): void;
8
10
  }
@@ -1,4 +1,4 @@
1
- /** @module Interface wasi:io/streams@0.2.6 **/
1
+ /** @module Interface wasi:io/streams@0.2.12 **/
2
2
  export type Error = import('./wasi-io-error.js').Error;
3
3
  export type StreamError = StreamErrorLastOperationFailed | StreamErrorClosed;
4
4
  export interface StreamErrorLastOperationFailed {
@@ -8,6 +8,7 @@ export interface StreamErrorLastOperationFailed {
8
8
  export interface StreamErrorClosed {
9
9
  tag: 'closed',
10
10
  }
11
+ export type Pollable = import('./wasi-io-poll.js').Pollable;
11
12
 
12
13
  export class InputStream {
13
14
  /**
@@ -15,7 +16,7 @@ export class InputStream {
15
16
  */
16
17
  private constructor();
17
18
  read(len: bigint): Uint8Array;
18
- blockingRead(len: bigint): Uint8Array;
19
+ subscribe(): Pollable;
19
20
  }
20
21
 
21
22
  export class OutputStream {
@@ -25,6 +26,6 @@ export class OutputStream {
25
26
  private constructor();
26
27
  checkWrite(): bigint;
27
28
  write(contents: Uint8Array): void;
28
- blockingWriteAndFlush(contents: Uint8Array): void;
29
29
  blockingFlush(): void;
30
+ subscribe(): Pollable;
30
31
  }
@@ -1,2 +1,2 @@
1
- /** @module Interface wasi:random/insecure-seed@0.2.6 **/
1
+ /** @module Interface wasi:random/insecure-seed@0.2.12 **/
2
2
  export function insecureSeed(): [bigint, bigint];
Binary file
@@ -1,21 +1,20 @@
1
1
  // world root:component/root
2
- export type * as WasiCliEnvironment026 from './interfaces/wasi-cli-environment.js'; // import wasi:cli/environment@0.2.6
3
- export type * as WasiCliExit026 from './interfaces/wasi-cli-exit.js'; // import wasi:cli/exit@0.2.6
4
- export type * as WasiCliStderr026 from './interfaces/wasi-cli-stderr.js'; // import wasi:cli/stderr@0.2.6
5
- export type * as WasiCliStdin026 from './interfaces/wasi-cli-stdin.js'; // import wasi:cli/stdin@0.2.6
6
- export type * as WasiCliStdout026 from './interfaces/wasi-cli-stdout.js'; // import wasi:cli/stdout@0.2.6
7
- export type * as WasiCliTerminalInput026 from './interfaces/wasi-cli-terminal-input.js'; // import wasi:cli/terminal-input@0.2.6
8
- export type * as WasiCliTerminalOutput026 from './interfaces/wasi-cli-terminal-output.js'; // import wasi:cli/terminal-output@0.2.6
9
- export type * as WasiCliTerminalStderr026 from './interfaces/wasi-cli-terminal-stderr.js'; // import wasi:cli/terminal-stderr@0.2.6
10
- export type * as WasiCliTerminalStdin026 from './interfaces/wasi-cli-terminal-stdin.js'; // import wasi:cli/terminal-stdin@0.2.6
11
- export type * as WasiCliTerminalStdout026 from './interfaces/wasi-cli-terminal-stdout.js'; // import wasi:cli/terminal-stdout@0.2.6
12
- export type * as WasiClocksWallClock026 from './interfaces/wasi-clocks-wall-clock.js'; // import wasi:clocks/wall-clock@0.2.6
13
- export type * as WasiFilesystemPreopens026 from './interfaces/wasi-filesystem-preopens.js'; // import wasi:filesystem/preopens@0.2.6
14
- export type * as WasiFilesystemTypes026 from './interfaces/wasi-filesystem-types.js'; // import wasi:filesystem/types@0.2.6
15
- export type * as WasiIoError026 from './interfaces/wasi-io-error.js'; // import wasi:io/error@0.2.6
16
- export type * as WasiIoPoll026 from './interfaces/wasi-io-poll.js'; // import wasi:io/poll@0.2.6
17
- export type * as WasiIoStreams026 from './interfaces/wasi-io-streams.js'; // import wasi:io/streams@0.2.6
18
- export type * as WasiRandomInsecureSeed026 from './interfaces/wasi-random-insecure-seed.js'; // import wasi:random/insecure-seed@0.2.6
19
- export type * as WasiSocketsTcp026 from './interfaces/wasi-sockets-tcp.js'; // import wasi:sockets/tcp@0.2.6
20
- export type * as WasiSocketsUdp026 from './interfaces/wasi-sockets-udp.js'; // import wasi:sockets/udp@0.2.6
21
- export * as run from './interfaces/wasi-cli-run.js'; // export wasi:cli/run@0.2.6
2
+ export type * as WasiCliEnvironment0212 from './interfaces/wasi-cli-environment.js'; // import wasi:cli/environment@0.2.12
3
+ export type * as WasiCliExit0212 from './interfaces/wasi-cli-exit.js'; // import wasi:cli/exit@0.2.12
4
+ export type * as WasiCliStderr0212 from './interfaces/wasi-cli-stderr.js'; // import wasi:cli/stderr@0.2.12
5
+ export type * as WasiCliStdin0212 from './interfaces/wasi-cli-stdin.js'; // import wasi:cli/stdin@0.2.12
6
+ export type * as WasiCliStdout0212 from './interfaces/wasi-cli-stdout.js'; // import wasi:cli/stdout@0.2.12
7
+ export type * as WasiCliTerminalInput0212 from './interfaces/wasi-cli-terminal-input.js'; // import wasi:cli/terminal-input@0.2.12
8
+ export type * as WasiCliTerminalOutput0212 from './interfaces/wasi-cli-terminal-output.js'; // import wasi:cli/terminal-output@0.2.12
9
+ export type * as WasiCliTerminalStderr0212 from './interfaces/wasi-cli-terminal-stderr.js'; // import wasi:cli/terminal-stderr@0.2.12
10
+ export type * as WasiCliTerminalStdin0212 from './interfaces/wasi-cli-terminal-stdin.js'; // import wasi:cli/terminal-stdin@0.2.12
11
+ export type * as WasiCliTerminalStdout0212 from './interfaces/wasi-cli-terminal-stdout.js'; // import wasi:cli/terminal-stdout@0.2.12
12
+ export type * as WasiClocksMonotonicClock0212 from './interfaces/wasi-clocks-monotonic-clock.js'; // import wasi:clocks/monotonic-clock@0.2.12
13
+ export type * as WasiClocksWallClock0212 from './interfaces/wasi-clocks-wall-clock.js'; // import wasi:clocks/wall-clock@0.2.12
14
+ export type * as WasiFilesystemPreopens0212 from './interfaces/wasi-filesystem-preopens.js'; // import wasi:filesystem/preopens@0.2.12
15
+ export type * as WasiFilesystemTypes0212 from './interfaces/wasi-filesystem-types.js'; // import wasi:filesystem/types@0.2.12
16
+ export type * as WasiIoError0212 from './interfaces/wasi-io-error.js'; // import wasi:io/error@0.2.12
17
+ export type * as WasiIoPoll0212 from './interfaces/wasi-io-poll.js'; // import wasi:io/poll@0.2.12
18
+ export type * as WasiIoStreams0212 from './interfaces/wasi-io-streams.js'; // import wasi:io/streams@0.2.12
19
+ export type * as WasiRandomInsecureSeed0212 from './interfaces/wasi-random-insecure-seed.js'; // import wasi:random/insecure-seed@0.2.12
20
+ export * as run from './interfaces/wasi-cli-run.js'; // export wasi:cli/run@0.2.0