@tinycloud/mcp 0.10.0-beta.50 → 0.10.0-beta.51

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/dist/http-cli.js CHANGED
@@ -1959,6 +1959,7 @@ function registerTinyCloudTools(server, selection, validator) {
1959
1959
  validator
1960
1960
  );
1961
1961
  const annotations = {
1962
+ ...selection.annotationTitles === true ? { title: operation.title } : {},
1962
1963
  readOnlyHint: binding.readOnlyHint,
1963
1964
  idempotentHint: binding.idempotentHint,
1964
1965
  destructiveHint: binding.destructiveHint,
@@ -2025,7 +2026,7 @@ function outcomeCode(result) {
2025
2026
  // package.json
2026
2027
  var package_default = {
2027
2028
  name: "@tinycloud/mcp",
2028
- version: "0.10.0-beta.50",
2029
+ version: "0.10.0-beta.51",
2029
2030
  description: "TinyCloud delegated operations MCP server",
2030
2031
  keywords: [
2031
2032
  "tinycloud",
@@ -2128,6 +2129,7 @@ var MCP_CORS_EXPOSED_HEADERS = "WWW-Authenticate, Mcp-Session-Id, Mcp-Protocol-V
2128
2129
  var LOCAL_CLI_PACKAGE = ["@tinycloud", "cli"].join("/");
2129
2130
  var LOCAL_MCP_PACKAGE = ["@tinycloud", "mcp"].join("/");
2130
2131
  var RESTRICTED_ADDRESS_PREFIXES = ["chatgpt", "claude", "grok", "muse"];
2132
+ var ANNOTATION_TITLE_PREFIXES = /* @__PURE__ */ new Set(["claude"]);
2131
2133
  function createHostedMcpApp(config) {
2132
2134
  if (config.nativeServiceCredential !== void 0 && Buffer.byteLength(config.nativeServiceCredential, "utf8") < 32) {
2133
2135
  throw new Error("TC_MCP_NATIVE_SERVICE_CREDENTIAL must contain at least 32 bytes.");
@@ -2145,7 +2147,7 @@ function createHostedMcpApp(config) {
2145
2147
  nativeServiceCredential: void 0,
2146
2148
  stateDir: join3(config.stateDir, prefix),
2147
2149
  approvalPath: connectUrl.pathname
2148
- }, restrictedUrl, "public", statusFor(restrictedUrl));
2150
+ }, restrictedUrl, "public", statusFor(restrictedUrl), ANNOTATION_TITLE_PREFIXES.has(prefix));
2149
2151
  surfaces.push(restricted);
2150
2152
  for (const owned of [
2151
2153
  restrictedUrl,
@@ -2163,7 +2165,7 @@ function createHostedMcpApp(config) {
2163
2165
  }
2164
2166
  };
2165
2167
  }
2166
- function createHostedSurface(config, resourceUrl, surface, tokenStatus) {
2168
+ function createHostedSurface(config, resourceUrl, surface, tokenStatus, annotationTitles = false) {
2167
2169
  const connectPath = config.approvalPath ?? "/connect";
2168
2170
  const callbackPath = `${connectPath}/callback`;
2169
2171
  const issuer = String(config.oauthMetadata.issuer);
@@ -2203,6 +2205,7 @@ function createHostedSurface(config, resourceUrl, surface, tokenStatus) {
2203
2205
  explicitProfile: true,
2204
2206
  allowOwnerProfile: false,
2205
2207
  stateRoot,
2208
+ annotationTitles,
2206
2209
  ...nativeOwner === void 0 ? {} : {
2207
2210
  allowedTools: ["tinycloud_sql_query", "tinycloud_kv_get", "tinycloud_read"]
2208
2211
  },
@@ -2211,7 +2214,7 @@ function createHostedSurface(config, resourceUrl, surface, tokenStatus) {
2211
2214
  transformOperationResult: (result, invocation) => store.decorateAuthorityResult(subject, ownerDids, result, invocation)
2212
2215
  } : {}
2213
2216
  }, validator);
2214
- if (nativeOwner === void 0) registerConnectTool(server, validator, store, identity, surface);
2217
+ if (nativeOwner === void 0) registerConnectTool(server, validator, store, identity, surface, annotationTitles);
2215
2218
  return server;
2216
2219
  }, {
2217
2220
  legacy: "stateless",
@@ -2558,7 +2561,8 @@ Local alternative: install \`${LOCAL_CLI_PACKAGE}\` and \`${LOCAL_MCP_PACKAGE}\`
2558
2561
  close: () => handler.close()
2559
2562
  };
2560
2563
  }
2561
- function registerConnectTool(server, validator, store, identity, surface) {
2564
+ function registerConnectTool(server, validator, store, identity, surface, annotationTitles) {
2565
+ const title = "Connect TinyCloud";
2562
2566
  const inputSchema = fromJsonSchema2({ type: "object", properties: {}, additionalProperties: false }, validator);
2563
2567
  const outputSchema = fromJsonSchema2({
2564
2568
  type: "object",
@@ -2574,11 +2578,12 @@ function registerConnectTool(server, validator, store, identity, surface) {
2574
2578
  server.registerTool(
2575
2579
  "tinycloud_connect",
2576
2580
  {
2577
- title: "Connect TinyCloud",
2581
+ title,
2578
2582
  description: "Check the hosted delegate connection and return a one-time OpenKey approval URL when setup is required.",
2579
2583
  inputSchema,
2580
2584
  outputSchema,
2581
2585
  annotations: {
2586
+ ...annotationTitles ? { title } : {},
2582
2587
  readOnlyHint: false,
2583
2588
  idempotentHint: true,
2584
2589
  destructiveHint: false,