official_registry_client
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| MCPRegistryClient llmling_agent.mcp_server.registries.official_registry_client Client for interacting with the MCP registry API. |
||
| MCPRegistryError llmling_agent.mcp_server.registries.official_registry_client Exception raised for MCP registry operations. |
||
| RegistryListResponse llmling_agent.mcp_server.registries.official_registry_client Response from the registry list servers endpoint. |
||
| RegistryPackage llmling_agent.mcp_server.registries.official_registry_client Package information for installing an MCP server. |
||
| RegistryRemote llmling_agent.mcp_server.registries.official_registry_client Remote endpoint configuration. |
||
| RegistryRepository llmling_agent.mcp_server.registries.official_registry_client Repository information for a registry server. |
||
| RegistryServer llmling_agent.mcp_server.registries.official_registry_client MCP server entry from the registry. |
||
| RegistryServerWrapper llmling_agent.mcp_server.registries.official_registry_client Wrapper for server data from the official registry API. |
||
| RegistryTransport llmling_agent.mcp_server.registries.official_registry_client Transport configuration for a package. |
||
| UnsupportedTransportError llmling_agent.mcp_server.registries.official_registry_client Raised when no supported transport is available. |
🛈 DocStrings¶
MCP Registry client service for discovering and managing MCP servers.
This module provides functionality to interact with the Model Context Protocol registry API for server discovery and configuration.
MCPRegistryClient
¶
Client for interacting with the MCP registry API.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 | |
clear_cache
¶
clear_cache()
Clear the metadata cache.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
316 317 318 319 | |
close
async
¶
close()
Close the HTTP client.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
321 322 323 324 | |
get_server
async
¶
get_server(server_id: str) -> RegistryServer
Get full server details including packages.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | |
list_servers
async
¶
list_servers(search: str | None = None, status: str = 'active') -> list[RegistryServer]
List servers from registry with optional filtering.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |
MCPRegistryError
¶
Bases: Exception
Exception raised for MCP registry operations.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
338 339 | |
RegistryListResponse
¶
Bases: Schema
Response from the registry list servers endpoint.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
185 186 187 188 189 190 191 192 | |
RegistryPackage
¶
Bases: Schema
Package information for installing an MCP server.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
environment_variables
class-attribute
instance-attribute
¶
environment_variables: list[dict[str, Any]] = Field(
default_factory=list, alias="environmentVariables"
)
Environment variables.
file_sha256
class-attribute
instance-attribute
¶
file_sha256: str | None = Field(None, alias='fileSha256')
File SHA256 hash.
package_arguments
class-attribute
instance-attribute
¶
Package arguments.
registry_base_url
class-attribute
instance-attribute
¶
registry_base_url: str | None = Field(None, alias='registryBaseUrl')
Registry base URL.
registry_type
class-attribute
instance-attribute
¶
registry_type: str = Field(alias='registryType')
Package registry type (npm, pypi, docker).
RegistryRemote
¶
Bases: Schema
Remote endpoint configuration.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
96 97 98 99 100 101 102 103 104 105 106 | |
RegistryRepository
¶
Bases: Schema
Repository information for a registry server.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
37 38 39 40 41 42 43 44 45 46 47 48 | |
validate_url
classmethod
¶
Allow empty URLs from registry.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
44 45 46 47 48 | |
RegistryServer
¶
Bases: Schema
MCP server entry from the registry.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |
packages
class-attribute
instance-attribute
¶
packages: list[RegistryPackage] = Field(default_factory=list)
Available packages.
remotes
class-attribute
instance-attribute
¶
remotes: list[RegistryRemote] = Field(default_factory=list)
Remote endpoints.
schema_
class-attribute
instance-attribute
¶
schema_: str | None = Field(None, alias='$schema')
JSON schema URL.
get_preferred_transport
¶
get_preferred_transport() -> TransportType
Select optimal transport method based on availability and performance.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |
RegistryServerWrapper
¶
Bases: Schema
Wrapper for server data from the official registry API.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
175 176 177 178 179 180 181 182 | |
RegistryTransport
¶
Bases: Schema
Transport configuration for a package.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
51 52 53 54 55 56 57 58 | |
UnsupportedTransportError
¶
Bases: Exception
Raised when no supported transport is available.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
33 34 | |
main
async
¶
main()
Test the MCP registry client with caching and transport resolution.
Source code in src/llmling_agent/mcp_server/registries/official_registry_client.py
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | |