@anyknown/mcp 0.1.3 → 0.1.4

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.
@@ -1,9 +1,9 @@
1
- import type { McpServerRow, McpToolRow } from "../schema";
1
+ import type { McpConnectionStatus, McpServerRow, McpToolRow } from "../schema";
2
2
  export type CatalogServer = McpServerRow & {
3
3
  tool_count: number;
4
4
  };
5
5
  export type ServerSummary = McpServerRow & {
6
- connected: number;
6
+ status: McpConnectionStatus;
7
7
  tool_count: number;
8
8
  synced_at: number | null;
9
9
  };
package/dist/public.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export type { AdminServerItem, CallInput, CompleteOauthInput, ConnectResult, DescribedItem, HubResult, McpServerRow, OwnServerInput, SearchInput, ServerItem, ToolHit, ToolItem, Transient, } from "./rpc/types";
2
2
  export type { McpHubRpc } from "./rpc/hub-rpc";
3
- export type { McpAuth } from "./schema";
3
+ export type { McpAuth, McpConnectionStatus } from "./schema";
4
4
  export type { McpErrorCode } from "./errors";
@@ -1,6 +1,6 @@
1
1
  import type { CatalogServer, ToolHit } from "../catalog/types";
2
2
  import type { McpErrorCode } from "../errors";
3
- import type { McpAuth } from "../schema";
3
+ import type { McpAuth, McpConnectionStatus } from "../schema";
4
4
  export type { AdminServerInput, McpServerRow } from "../schema";
5
5
  export type { ToolHit };
6
6
  export type HubResult<T> = {
@@ -46,6 +46,7 @@ export type ServerItem = {
46
46
  enabled: boolean;
47
47
  own: boolean;
48
48
  connected: boolean;
49
+ status: McpConnectionStatus;
49
50
  tool_count: number;
50
51
  synced_at: number | null;
51
52
  };
package/dist/schema.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export declare const AUTH_KINDS: readonly ["oauth", "bearer", "none"];
2
2
  export type McpAuth = (typeof AUTH_KINDS)[number];
3
+ export type McpConnectionStatus = "connected" | "expired" | "none";
3
4
  export type McpServerRow = {
4
5
  id: string;
5
6
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anyknown/mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/anyknown-com/mcp.git"