list_certificates
List all uploaded signing certificates and retrieve their details as a JSON array for review or management.
Instructions
List all uploaded signing certificates.
Returns: JSON array of certificate info objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- mcp/src/docgen_mcp/server.py:439-448 (handler)MCP tool handler for 'list_certificates'. Decorated with @mcp.tool(), it calls dg.signatures.list_certificates() and returns JSON. This is the primary tool implementation.
@mcp.tool() def list_certificates() -> str: """List all uploaded signing certificates. Returns: JSON array of certificate info objects. """ dg = _get_client() certs = dg.signatures.list_certificates() return json.dumps(certs) - mcp/src/docgen_mcp/server.py:439-440 (registration)Registration via @mcp.tool() decorator on the list_certificates function, which registers it as an MCP tool named 'list_certificates'.
@mcp.tool() def list_certificates() -> str: - Python client library's list_certificates method - performs GET /api/signatures/certificates to list uploaded certificate names. Called by the MCP handler.
def list_certificates(self) -> list[str]: """List uploaded certificate names.""" return self._transport.request_list("GET", "/api/signatures/certificates") - TypeScript client library's listCertificates method - performs GET /api/signatures/certificates to list uploaded certificates. Equivalent implementation in TypeScript.
async listCertificates(): Promise<CertificateInfo[]> { return this.transport.requestList<CertificateInfo>( "GET", "/api/signatures/certificates", ); }