# Tenant Template Manager

Authenticate and provision new tenants with initial document templates. Add and manage templates for existing tenants to standardize workflows. Connect to external services via HTTP as part of your s…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add santiago.blanco.vilchez/asd

# Browse available tools
npx -y @smithery/cli@latest tool list santiago.blanco.vilchez/asd

# Get full schema for a tool
npx -y @smithery/cli@latest tool get santiago.blanco.vilchez/asd add-template

# Call a tool
npx -y @smithery/cli@latest tool call santiago.blanco.vilchez/asd add-template '{}'
```

## Direct MCP Connection

Endpoint: `https://asd--santiago.blanco.vilchez.run.tools`

## Tools (4)

- `add-template` — Add a new template with sections to an existing tenant via the seed-template endpoint
- `auth-login` — Authenticate user via the login endpoint and get JWT access token
- `create-tenant` — Create a new tenant via the bootstrap endpoint with tenant, service type, admin user, and document sections
- `http-request` — Make HTTP requests to external APIs

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get santiago.blanco.vilchez/asd <tool-name>
```

## Resources

- `auth://login` — Obtain JWT tokens for API authorization
- `tenants://bootstrap` — Create a new tenant with admin user, service type and initial template
- `tenants://seed-template` — Add a new document template to an existing tenant

## Prompts (3)

- `add-template` (tenantId, serviceTypeName, serviceTypeDescription, templateName, sections) — Add a new document template to an existing tenant
- `create-tenant` (tenantName, tenantUrl, tenantLogoUrl, adminEmail, adminPassword, adminFirstName, adminLastName, adminPhone, adminAddress, serviceType, serviceDescription, templateName, sections) — Create a new tenant with admin user and initial document template
- `system-prompt` (baseUrl, accessToken) — System prompt for CPA Assistant API operations
