@codeqr/ts-mcp 0.24.1 → 0.25.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/src/methods.ts CHANGED
@@ -16,30 +16,30 @@ export const sdkMethods: SdkMethod[] = [
16
16
  httpMethod: 'post',
17
17
  httpPath: '/links',
18
18
  },
19
- {
20
- clientCallName: 'client.links.list',
21
- fullyQualifiedName: 'links.list',
22
- httpMethod: 'get',
23
- httpPath: '/links',
24
- },
25
- {
26
- clientCallName: 'client.links.retrieveInfo',
27
- fullyQualifiedName: 'links.retrieveInfo',
28
- httpMethod: 'get',
29
- httpPath: '/links/info',
30
- },
31
19
  {
32
20
  clientCallName: 'client.links.update',
33
21
  fullyQualifiedName: 'links.update',
34
22
  httpMethod: 'put',
35
23
  httpPath: '/links/{linkId}',
36
24
  },
25
+ {
26
+ clientCallName: 'client.links.list',
27
+ fullyQualifiedName: 'links.list',
28
+ httpMethod: 'get',
29
+ httpPath: '/links',
30
+ },
37
31
  {
38
32
  clientCallName: 'client.links.delete',
39
33
  fullyQualifiedName: 'links.delete',
40
34
  httpMethod: 'delete',
41
35
  httpPath: '/links/{linkId}',
42
36
  },
37
+ {
38
+ clientCallName: 'client.links.retrieveInfo',
39
+ fullyQualifiedName: 'links.retrieveInfo',
40
+ httpMethod: 'get',
41
+ httpPath: '/links/info',
42
+ },
43
43
  {
44
44
  clientCallName: 'client.links.bulk.create',
45
45
  fullyQualifiedName: 'links.bulk.create',
@@ -52,12 +52,6 @@ export const sdkMethods: SdkMethod[] = [
52
52
  httpMethod: 'post',
53
53
  httpPath: '/qrcodes',
54
54
  },
55
- {
56
- clientCallName: 'client.qrcodes.list',
57
- fullyQualifiedName: 'qrcodes.list',
58
- httpMethod: 'get',
59
- httpPath: '/qrcodes',
60
- },
61
55
  {
62
56
  clientCallName: 'client.qrcodes.retrieve',
63
57
  fullyQualifiedName: 'qrcodes.retrieve',
@@ -70,6 +64,12 @@ export const sdkMethods: SdkMethod[] = [
70
64
  httpMethod: 'put',
71
65
  httpPath: '/qrcodes/{qrcodeId}',
72
66
  },
67
+ {
68
+ clientCallName: 'client.qrcodes.list',
69
+ fullyQualifiedName: 'qrcodes.list',
70
+ httpMethod: 'get',
71
+ httpPath: '/qrcodes',
72
+ },
73
73
  {
74
74
  clientCallName: 'client.qrcodes.delete',
75
75
  fullyQualifiedName: 'qrcodes.delete',
@@ -100,18 +100,18 @@ export const sdkMethods: SdkMethod[] = [
100
100
  httpMethod: 'post',
101
101
  httpPath: '/tags',
102
102
  },
103
- {
104
- clientCallName: 'client.tags.list',
105
- fullyQualifiedName: 'tags.list',
106
- httpMethod: 'get',
107
- httpPath: '/tags',
108
- },
109
103
  {
110
104
  clientCallName: 'client.tags.update',
111
105
  fullyQualifiedName: 'tags.update',
112
106
  httpMethod: 'put',
113
107
  httpPath: '/tags/{id}',
114
108
  },
109
+ {
110
+ clientCallName: 'client.tags.list',
111
+ fullyQualifiedName: 'tags.list',
112
+ httpMethod: 'get',
113
+ httpPath: '/tags',
114
+ },
115
115
  {
116
116
  clientCallName: 'client.tags.delete',
117
117
  fullyQualifiedName: 'tags.delete',
@@ -124,18 +124,18 @@ export const sdkMethods: SdkMethod[] = [
124
124
  httpMethod: 'post',
125
125
  httpPath: '/domains',
126
126
  },
127
- {
128
- clientCallName: 'client.domains.list',
129
- fullyQualifiedName: 'domains.list',
130
- httpMethod: 'get',
131
- httpPath: '/domains',
132
- },
133
127
  {
134
128
  clientCallName: 'client.domains.update',
135
129
  fullyQualifiedName: 'domains.update',
136
130
  httpMethod: 'patch',
137
131
  httpPath: '/domains/{slug}',
138
132
  },
133
+ {
134
+ clientCallName: 'client.domains.list',
135
+ fullyQualifiedName: 'domains.list',
136
+ httpMethod: 'get',
137
+ httpPath: '/domains',
138
+ },
139
139
  {
140
140
  clientCallName: 'client.domains.delete',
141
141
  fullyQualifiedName: 'domains.delete',
package/src/server.ts CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  SetLevelRequestSchema,
9
9
  } from '@modelcontextprotocol/sdk/types.js';
10
10
  import { ClientOptions } from '@codeqr/ts';
11
- import Codeqr from '@codeqr/ts';
11
+ import CodeQR from '@codeqr/ts';
12
12
  import { codeTool } from './code-tool';
13
13
  import docsSearchTool from './docs-search-tool';
14
14
  import { setLocalSearch } from './docs-search-tool';
@@ -28,7 +28,7 @@ export const newMcpServer = async ({
28
28
  new McpServer(
29
29
  {
30
30
  name: 'codeqr_ts_api',
31
- version: '0.24.0',
31
+ version: '0.24.1',
32
32
  },
33
33
  {
34
34
  instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
@@ -72,15 +72,15 @@ export async function initMcpServer(params: {
72
72
  setLocalSearch(localSearch);
73
73
  }
74
74
 
75
- let _client: Codeqr | undefined;
75
+ let _client: CodeQR | undefined;
76
76
  let _clientError: Error | undefined;
77
77
  let _logLevel: 'debug' | 'info' | 'warn' | 'error' | 'off' | undefined;
78
78
 
79
- const getClient = (): Codeqr => {
79
+ const getClient = (): CodeQR => {
80
80
  if (_clientError) throw _clientError;
81
81
  if (!_client) {
82
82
  try {
83
- _client = new Codeqr({
83
+ _client = new CodeQR({
84
84
  logger,
85
85
  ...params.clientOptions,
86
86
  defaultHeaders: {
@@ -115,7 +115,7 @@ export async function initMcpServer(params: {
115
115
  throw new Error(`Unknown tool: ${name}`);
116
116
  }
117
117
 
118
- let client: Codeqr;
118
+ let client: CodeQR;
119
119
  try {
120
120
  client = getClient();
121
121
  } catch (error) {
package/src/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import Codeqr from '@codeqr/ts';
3
+ import CodeQR from '@codeqr/ts';
4
4
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
5
5
 
6
6
  type TextContentBlock = {
@@ -43,7 +43,7 @@ export type ToolCallResult = {
43
43
  };
44
44
 
45
45
  export type McpRequestContext = {
46
- client: Codeqr;
46
+ client: CodeQR;
47
47
  stainlessApiKey?: string | undefined;
48
48
  upstreamClientEnvs?: Record<string, string> | undefined;
49
49
  mcpSessionId?: string | undefined;
package/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import Codeqr from '@codeqr/ts';
1
+ import CodeQR from '@codeqr/ts';
2
2
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
3
  type TextContentBlock = {
4
4
  type: 'text';
@@ -32,7 +32,7 @@ export type ToolCallResult = {
32
32
  isError?: boolean;
33
33
  };
34
34
  export type McpRequestContext = {
35
- client: Codeqr;
35
+ client: CodeQR;
36
36
  stainlessApiKey?: string | undefined;
37
37
  upstreamClientEnvs?: Record<string, string> | undefined;
38
38
  mcpSessionId?: string | undefined;
package/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import Codeqr from '@codeqr/ts';
1
+ import CodeQR from '@codeqr/ts';
2
2
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
3
  type TextContentBlock = {
4
4
  type: 'text';
@@ -32,7 +32,7 @@ export type ToolCallResult = {
32
32
  isError?: boolean;
33
33
  };
34
34
  export type McpRequestContext = {
35
- client: Codeqr;
35
+ client: CodeQR;
36
36
  stainlessApiKey?: string | undefined;
37
37
  upstreamClientEnvs?: Record<string, string> | undefined;
38
38
  mcpSessionId?: string | undefined;