|
| 1 | +# Atlas MCP Server Tracking Plan |
| 2 | + |
| 3 | +Generated on April 16, 2025 |
| 4 | + |
| 5 | +## MDB MCP Event |
| 6 | + |
| 7 | +All events in the MCP server follow this base structure with common properties. Specific event types will have additional properties as detailed below. |
| 8 | + |
| 9 | +**Base Properties**: |
| 10 | + |
| 11 | +- **timestamp** (required): `string` |
| 12 | + - ISO 8601 timestamp when the event occurred |
| 13 | +- **machine_id** (required): `string` |
| 14 | + - Unique anonymous identifier of the machine |
| 15 | +- **mcp\_server\_version** (required): `string` |
| 16 | + - The version of the MCP server. |
| 17 | +- **mcp\_server\_name** (required): `string` |
| 18 | + - The name of the MCP server. |
| 19 | +- **mcp\_client\_version** (required): `string` |
| 20 | + - The version of the MCP agent. |
| 21 | +- **mcp\_client\_name** (required): `string` |
| 22 | + - The name of the agent calling the MCP server. (e.g. claude) |
| 23 | +- **platform** (required): `string` |
| 24 | + - The platform on which the MCP server is running. |
| 25 | +- **arch** (required): `string` |
| 26 | + - The architecture of the system's processor. |
| 27 | +- **os\_type** (optional): `string | undefined` |
| 28 | + - The type of operating system. |
| 29 | +- **os\_version** (optional): `string | undefined` |
| 30 | + - Detailed kernel or system version information. |
| 31 | +- **os\_linux\_dist** (optional): `string | undefined` |
| 32 | + - The Linux distribution name, if applicable. |
| 33 | +- **component** (required): `string` |
| 34 | + - The component generating the event (e.g., "server", "tool", "atlas", "mongodb") |
| 35 | +- **action** (required): `string` |
| 36 | + - The specific action being performed |
| 37 | + |
| 38 | +## Events per component |
| 39 | + |
| 40 | +### Server Component |
| 41 | + |
| 42 | +#### Server Lifecycle |
| 43 | +**component**: `"server"` |
| 44 | +**action**: `"lifecycle"` |
| 45 | + |
| 46 | +**Additional Properties**: |
| 47 | +- **state** (required): `"start" | "stop"` |
| 48 | + - The lifecycle state change |
| 49 | +- **startup_time_ms** (optional): `number` |
| 50 | + - Time taken for the server to start. Present when state is "start". |
| 51 | +- **connected_services** (optional): `string[] | undefined` |
| 52 | + - List of services connected at launch. Present when state is "start". |
| 53 | +- **runtime_duration_ms** (optional): `number` |
| 54 | + - The total runtime duration. Present when state is "stop". |
| 55 | +- **exit_code** (optional): `number` |
| 56 | + - The exit code. Present when state is "stop". |
| 57 | +- **reason** (optional): `string | undefined` |
| 58 | + - The stop reason (e.g., "normal", "error", "timeout"). Present when state is "stop". |
| 59 | + |
| 60 | +#### Tool Registration |
| 61 | +**component**: `"tool"` |
| 62 | +**action**: `"register" | "deregister"` |
| 63 | + |
| 64 | +**Additional Properties**: |
| 65 | +- **count** (required): `number` |
| 66 | + - The number of tools registered |
| 67 | +- **tool_list** (required): `string[]` |
| 68 | + - List of tools registered |
| 69 | + |
| 70 | + |
| 71 | +#### Tool Call |
| 72 | +**component**: `"tool"` |
| 73 | +**action**: `"call"` |
| 74 | + |
| 75 | +**Additional Properties**: |
| 76 | +- **name** (required): `string` |
| 77 | + - The name of the tool |
| 78 | +- **target** (required): `"mongodb" | "atlas"` |
| 79 | + - The service being targeted by the tool |
| 80 | +- **operation** (required): `string` |
| 81 | + - The type of operation being performed |
| 82 | + - For MongoDB: `"query" | "aggregation" | "insert" | "update" | "delete" | "index" | "metadata" | "connect"` |
| 83 | + - For Atlas: `"list_clusters" | "list_projects" | "create_cluster" | "manage_access_list" | "manage_database_user" | "connect"` |
| 84 | +- **duration_ms** (required): `number` |
| 85 | + - Execution time in milliseconds |
| 86 | +- **success** (required): `boolean` |
| 87 | + - Whether the call succeeded |
| 88 | +- **error_code** (optional): `string | undefined` |
| 89 | + - Error code if operation failed |
| 90 | +- **error_type** (optional): `string | undefined` |
| 91 | + - Type of error if operation failed |
| 92 | +- **state** (optional): `"attempt" | "success" | "failure"` |
| 93 | + - Connection state (when operation is "connect") |
| 94 | +- **doc_count** (optional): `number | undefined` |
| 95 | + - Number of affected documents (MongoDB only) |
| 96 | +- **database** (optional): `string | undefined` |
| 97 | + - Target database name (MongoDB only) |
| 98 | +- **collection** (optional): `string | undefined` |
| 99 | + - Target collection name (MongoDB only) |
| 100 | +- **connection_id** (optional): `string | undefined` |
| 101 | + - Connection identifier (required when operation is "connect") |
| 102 | +- **project_id** (optional): `string | undefined` |
| 103 | + - Atlas project ID (Atlas only) |
| 104 | +- **org_id** (optional): `string | undefined` |
| 105 | + - Atlas organization ID (Atlas only) |
| 106 | +- **cluster_name** (optional): `string | undefined` |
| 107 | + - Target cluster name (Atlas only) |
| 108 | +- **is_atlas** (optional): `boolean | undefined` |
| 109 | + - Whether using Atlas connection string (when operation is "connect") |
| 110 | + |
| 111 | +#### Error |
| 112 | +**component**: `"error"` |
| 113 | +**action**: `"occur"` |
| 114 | + |
| 115 | +**Additional Properties**: |
| 116 | +- **code** (required): `number` |
| 117 | + - The error code |
| 118 | +- **context** (required): `string` |
| 119 | + - Where the error occurred (e.g., "auth", "tool", "connection") |
| 120 | +- **type** (required): `string` |
| 121 | + - Error category or type |
| 122 | + |
| 123 | +### Authentication Component |
| 124 | + |
| 125 | +#### Authentication |
| 126 | +**component**: `"auth"` |
| 127 | +**action**: `"authenticate"` |
| 128 | + |
| 129 | +**Additional Properties**: |
| 130 | +- **target** (required): `"mongodb" | "atlas"` |
| 131 | + - The service being authenticated with |
| 132 | +- **success** (required): `boolean` |
| 133 | + - Whether authentication succeeded |
| 134 | +- **method** (required): `string` |
| 135 | + - Authentication method used |
| 136 | +- **duration_ms** (required): `number` |
| 137 | + - Time taken to authenticate |
| 138 | +- **error_code** (optional): `string | undefined` |
| 139 | + - Error code if failed |
0 commit comments