chore: align MCP protocol client version

This commit is contained in:
2026-08-20 17:38:15 +08:00
parent 7416dfea1a
commit 5f01404319
3 changed files with 5 additions and 5 deletions
Vendored
+2 -2
View File
@@ -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) {
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -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) {