Skip to content

Commit 5e5f5ef

Browse files
authored
Merge pull request #49 from doitintl/feature/talc/invoices-prompts
feat(mcp): invoices prompts
2 parents 9d4cded + 85c79e0 commit 5e5f5ef

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ This MCP server provides the following tools:
108108
- [`get_dimension`](https://developer.doit.com/reference/getdimensions): Get a specific Cloud Analytics dimension by type and ID
109109
- [`list_tickets`](https://developer.doit.com/reference/listtickets): List support tickets from DoiT using the support API
110110
- [`create_ticket`](https://developer.doit.com/reference/createticket): Create a new support ticket in DoiT using the support API
111+
- [`list_invoices`](https://developer.doit.com/reference/listinvoices): List all current and historical invoices for your organization from the DoiT API
112+
- [`get_invoice`](https://developer.doit.com/reference/getinvoice): Retrieve the full details of an invoice specified by the invoice number from the DoiT API
111113

112114
## Usage Examples
113115

@@ -128,6 +130,11 @@ Here are some common queries you can ask using the DoiT MCP server:
128130
- "What are my recent GCP anomalies?" - This will show recent cost or usage anomalies detected in your Google Cloud Platform accounts.
129131
- "Show me details about anomaly ABC123" - This will provide detailed information about a specific anomaly.
130132

133+
### Invoices
134+
135+
- "List all my invoices" - This will show all current and historical invoices for your organization.
136+
- "Show me details for invoice INV-2024-001" - This will provide full details for a specific invoice, including line items and payment status.
137+
131138
These examples demonstrate basic usage patterns. You can combine and modify these queries based on your needs. The MCP server will interpret your natural language queries and use the appropriate tools to fetch the requested information.
132139

133140
## Environment Variables

src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ function createServer() {
135135
text: `Before creating a ticket, ask the user if the ticket body is clear and if they want to add more details.`,
136136
name: "Create Ticket",
137137
},
138+
{
139+
text: `Create a document (Artifacts) with a table to display invoice details. Include the following columns: Invoice ID, Invoice Date, Due Date, Status, Total Amount, Balance Amount, Currency, and URL. For line items, create a separate table with columns: Description, Details, Price, Quantity, Type, and Currency. Add any relevant payment status or due date alerts. (Do not generate code, only a document)`,
140+
name: "Generate Invoice Details Document",
141+
},
142+
{
143+
text: `Tools results should use the Document artifact type if possible.`,
144+
name: "DoiT MCP Server tools output",
145+
},
138146
],
139147
};
140148
});

0 commit comments

Comments
 (0)