mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
* feat(terraform): close key/team schema gaps, fix team read envelope, add import support * feat(terraform): add fallback resource/data source and key/team block resources * feat(terraform): add access group and unified access group resources and data sources * feat(terraform): add guardrail and prompt resources and data sources * feat(terraform): add agent and search tool resources and data sources * feat(terraform): add user and budget resources and data sources * feat(terraform): add tag and project resources and data sources * docs(terraform): changelog and readme for parity additions * feat(terraform): add data sources for keys, teams, models, organizations, and mcp servers * fix(terraform): key update 400 on empty budget_duration, key info envelope, config-supplied key * fix(terraform): hash raw keys to SHA-256 tokens in key lookup URLs and block resource IDs
1.5 KiB
1.5 KiB
| page_title | subcategory | description |
|---|---|---|
| litellm_mcp_servers Data Source - terraform-provider-litellm | Lists LiteLLM MCP servers. |
litellm_mcp_servers (Data Source)
Lists MCP servers via /v1/mcp/server. Secret material is never exposed.
Example Usage
data "litellm_mcp_servers" "all" {}
data "litellm_mcp_servers" "team_scoped" {
team_id = litellm_team.ml.id
}
output "mcp_server_urls" {
value = [for s in data.litellm_mcp_servers.all.mcp_servers : s.url]
}
Argument Reference
The following arguments are supported:
team_id- (Optional) Filter to servers this team can access plus globally available (allow_all_keys) servers.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
ids- IDs of the returned MCP servers.mcp_servers- List of MCP server objects. Each entry exports:server_id- Unique identifier of the MCP server.server_name- Name of the MCP server.alias- Alias for the MCP server.description- Description of the MCP server.url- URL of the MCP server.transport- Transport type (http,sse,stdio).spec_version- MCP specification version.auth_type- Authentication type.allow_all_keys- Whether all keys can access the server.status- Health status (healthy,unhealthy,unknown).created_at- Creation timestamp.updated_at- Last update timestamp.