chore: align MCP protocol client version
This commit is contained in:
Vendored
+2
-2
@@ -611,7 +611,7 @@ ${url.toString()}`);
|
||||
});
|
||||
const callback = new OAuthCallbackServer(options.callbackPort, (state) => provider.validateState(state));
|
||||
await callback.listen();
|
||||
const firstClient = new Client({ name: "crafttable-mcp-cli", version: "0.1.1" });
|
||||
const firstClient = new Client({ name: "crafttable-mcp-cli", version: "0.1.3" });
|
||||
const firstTransport = new StreamableHTTPClientTransport(options.url, { authProvider: provider });
|
||||
try {
|
||||
try {
|
||||
@@ -647,7 +647,7 @@ async function logoutRemote(options, tokenStore, discoveryStore, localOnly, fetc
|
||||
return { hadCredential: Boolean(tokens), revoked: Boolean(tokens && !localOnly) };
|
||||
}
|
||||
async function connectWithTransport(options, transport, authentication) {
|
||||
const client = new Client({ name: "crafttable-mcp-cli", version: "0.1.1" });
|
||||
const client = new Client({ name: "crafttable-mcp-cli", version: "0.1.3" });
|
||||
try {
|
||||
await client.connect(transport);
|
||||
} catch (error) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -61,7 +61,7 @@ export async function loginRemote(
|
||||
});
|
||||
const callback = new OAuthCallbackServer(options.callbackPort, (state) => provider.validateState(state));
|
||||
await callback.listen();
|
||||
const firstClient = new Client({ name: "crafttable-mcp-cli", version: "0.1.1" });
|
||||
const firstClient = new Client({ name: "crafttable-mcp-cli", version: "0.1.3" });
|
||||
const firstTransport = new StreamableHTTPClientTransport(options.url, { authProvider: provider });
|
||||
try {
|
||||
try {
|
||||
@@ -110,7 +110,7 @@ async function connectWithTransport(
|
||||
transport: StreamableHTTPClientTransport,
|
||||
authentication: RemoteConnection["authentication"],
|
||||
): Promise<RemoteConnection> {
|
||||
const client = new Client({ name: "crafttable-mcp-cli", version: "0.1.1" });
|
||||
const client = new Client({ name: "crafttable-mcp-cli", version: "0.1.3" });
|
||||
try {
|
||||
await client.connect(transport);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user