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