@cosmonic-labs/openapi2mcp 0.8.0 → 0.10.0

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,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,13 +1,6 @@
1
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
- }
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;
@@ -5,5 +5,4 @@ export class Error {
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
- toDebugString(): string;
9
8
  }
@@ -5,4 +5,5 @@ export class Pollable {
5
5
  * This type does not have a public constructor.
6
6
  */
7
7
  private constructor();
8
+ block(): void;
8
9
  }
@@ -8,14 +8,15 @@ 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
  /**
14
15
  * This type does not have a public constructor.
15
16
  */
16
17
  private constructor();
17
- read(len: bigint): Uint8Array;
18
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
  }
Binary file
@@ -16,6 +16,4 @@ export type * as WasiIoError026 from './interfaces/wasi-io-error.js'; // import
16
16
  export type * as WasiIoPoll026 from './interfaces/wasi-io-poll.js'; // import wasi:io/poll@0.2.6
17
17
  export type * as WasiIoStreams026 from './interfaces/wasi-io-streams.js'; // import wasi:io/streams@0.2.6
18
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
19
+ export * as run from './interfaces/wasi-cli-run.js'; // export wasi:cli/run@0.2.0