Skip to main content
Glama

propublica-mcp

well_known.py•727 B
from authlib.common.urls import urlparse def get_well_known_url(issuer, external=False, suffix="oauth-authorization-server"): """Get well-known URI with issuer via `Section 3.1`_. .. _`Section 3.1`: https://tools.ietf.org/html/rfc8414#section-3.1 :param issuer: URL of the issuer :param external: return full external url or not :param suffix: well-known URI suffix for RFC8414 :return: URL """ parsed = urlparse.urlparse(issuer) path = parsed.path if path and path != "/": url_path = f"/.well-known/{suffix}{path}" else: url_path = f"/.well-known/{suffix}" if not external: return url_path return parsed.scheme + "://" + parsed.netloc + url_path

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/asachs01/propublica-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server