Defining Resources
resource://app/settings) is how clients reference this resource. For ChatGPT widget apps, use the ui:// scheme (e.g. ui://widget/my-widget).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Expose read-only data to AI agents via MCP
from concierge import Concierge
app = Concierge("my-server")
@app.resource("resource://app/settings")
def get_settings() -> str:
"""Current application settings."""
return json.dumps({
"max_cart_items": 50,
"supported_currencies": ["USD", "EUR", "GBP"],
"free_shipping_threshold": 100,
})
resource://app/settings) is how clients reference this resource. For ChatGPT widget apps, use the ui:// scheme (e.g. ui://widget/my-widget).
@app.resource("resource://products/{product_id}")
def get_product_docs(product_id: str) -> str:
"""Product documentation and specifications."""
# Replace with your own data source
return f"# Product {product_id}\n\nA great product.\n\nPrice: $99"
| Use Case | Resource | Tool |
|---|---|---|
| Read-only data | Yes | No |
| Database schema | Yes | No |
| Configuration | Yes | No |
| Search/query | No | Yes |
| Create/update/delete | No | Yes |
| Side effects | No | Yes |