debreu-mcp 2.216.0 → 2.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/index.js +29 -14
- package/dist/index.js.map +1 -1
- package/dist/transactionTools.d.ts +342 -53
- package/dist/transactionTools.js +106 -72
- package/dist/transactionTools.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,14 +94,14 @@ There is **no send action**: emails must be sent by the user through Debreu, Gma
|
|
|
94
94
|
|
|
95
95
|
### Transactions (feature-gated)
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
Precedent transactions: acquisitions, equity raises, IPOs, debt financings and restructurings. These four tools appear only when the authenticated user's `view_transactions` flag is enabled (not on prospecting-only accounts); the backend checks the flag on every request too.
|
|
98
98
|
|
|
99
99
|
| Tool | Description |
|
|
100
100
|
|------|-------------|
|
|
101
|
-
| `query_transactions` | Search the team's precedent
|
|
102
|
-
| `get_transaction` | One deal with its parties (company, role, side),
|
|
103
|
-
| `create_transactions` | Log up to 100 deals per call. Parties take `company_id` or `company_name` (unclear names return candidates, never a new company); money in $
|
|
104
|
-
| `update_transaction` | Patch scalars; `parties` / `
|
|
101
|
+
| `query_transactions` | Search the team's precedent transactions by company (with role or buy / sell / company side), type, status, buyer type, sector, tags, confidential, announced-date range and TEV ($mm); sort by any metric column (`tev_revenue:ltm`); `include_medians` returns the median of every metric column; paginated with `has_more` / `next_offset`. |
|
|
102
|
+
| `get_transaction` | One deal with its parties (company, role, side), deal-type fields, metrics by period (typed or calculated, NA / NM / ND), tags and sources. |
|
|
103
|
+
| `create_transactions` | Log up to 100 deals per call. Parties take `company_id` or `company_name` (unclear names return candidates, never a new company); money in $mm in one `currency` per deal; dates can be a month alone; each type has its own fields (acquisition fees, raise pre / post-money, IPO shares and proceeds, debt terms, restructuring outcomes); `metrics` hold each metric once per period (LTM, NTM, Current, CY-2 to CY+2) as a value or NA / NM / ND, with multiples, margin and Rule of 40 calculated when not given; returns per-row results and possible duplicates. |
|
|
104
|
+
| `update_transaction` | Patch scalars; `parties` / `metrics` / `sources` / `tags`, when sent, replace that list. Delete with `delete_record` type `transaction`. |
|
|
105
105
|
|
|
106
106
|
### Companies
|
|
107
107
|
|
|
@@ -205,7 +205,7 @@ M&A precedent deals. These four tools appear only when the authenticated user's
|
|
|
205
205
|
| Tool | Description |
|
|
206
206
|
|------|-------------|
|
|
207
207
|
| `query_emails` | Search emails by keyword, date, company, project, person, or tag. Use 'me' for current user. |
|
|
208
|
-
| `get_email` | Get full email content and tags by UUID from a query_emails result
|
|
208
|
+
| `get_email` | Get full email content and tags by UUID from a query_emails result, with each attachment's `file_uuid` for `get_file`. |
|
|
209
209
|
|
|
210
210
|
### Calendars
|
|
211
211
|
|
|
@@ -219,7 +219,7 @@ M&A precedent deals. These four tools appear only when the authenticated user's
|
|
|
219
219
|
| Tool | Description |
|
|
220
220
|
|------|-------------|
|
|
221
221
|
| `query_files` | Search uploaded files and email attachments by upload date (created_at), company, project, keyword, or tag. Results include the semantic `document_type` and its `document_category`, and `sharepoint_url` on your own files when matched. |
|
|
222
|
-
| `get_file` | Get
|
|
222
|
+
| `get_file` | Get a file by UUID from query_files or an email's attachments: a 15-minute signed `download_url` for the original first, its `sharepoint_url` when matched, the semantic `document_type` and `document_category`, then the extracted text paged by `offset` / `max_chars` (default 8,000 characters). |
|
|
223
223
|
| `upload_file` | Upload a file via local path (stdio servers only — the hosted HTTP server rejects `file_path`, send `content_base64`) or base64 content. Supports title, description, company/calendar-event association, and `file_date` (backdate to a past document's effective date — parsing uses this as the reference date). |
|
|
224
224
|
| `share_file_with_user` | Grant explicit access to a teammate for a file you own. Recipient gets full owner-equivalent access. |
|
|
225
225
|
| `share_file_with_users` | Grant explicit access to multiple teammates in one call. |
|
package/dist/index.js
CHANGED
|
@@ -1121,7 +1121,8 @@ const TOOLS = [
|
|
|
1121
1121
|
},
|
|
1122
1122
|
{
|
|
1123
1123
|
name: "get_email",
|
|
1124
|
-
description: "Get full email content by UUID from a query_emails result."
|
|
1124
|
+
description: "Get full email content by UUID from a query_emails result. attachments lists each attachment's " +
|
|
1125
|
+
"file_uuid, filename, mime_type and size_bytes; pass file_uuid to get_file for its download link and text.",
|
|
1125
1126
|
inputSchema: {
|
|
1126
1127
|
type: "object",
|
|
1127
1128
|
properties: {
|
|
@@ -1295,14 +1296,24 @@ const TOOLS = [
|
|
|
1295
1296
|
},
|
|
1296
1297
|
{
|
|
1297
1298
|
name: "get_file",
|
|
1298
|
-
description: "Get
|
|
1299
|
-
"original file that expires after 15 minutes (null when there is no original). Give it to
|
|
1300
|
-
"the file, or fetch it to save the file locally. Do not store or reuse it. sharepoint_url
|
|
1301
|
-
"file in SharePoint when Debreu matched one (null otherwise)."
|
|
1299
|
+
description: "Get a file by UUID (from query_files, or an email's attachments[].file_uuid). Returns download_url first: a " +
|
|
1300
|
+
"signed link to the original file that expires after 15 minutes (null when there is no original). Give it to " +
|
|
1301
|
+
"the user to download the file, or fetch it to save the file locally. Do not store or reuse it. sharepoint_url " +
|
|
1302
|
+
"links to the same file in SharePoint when Debreu matched one (null otherwise). content is the extracted text, " +
|
|
1303
|
+
"paged: up to max_chars characters from offset (default 8000). content_chars is the full length; when " +
|
|
1304
|
+
"content_truncated is true, call again with offset=next_offset to read more.",
|
|
1302
1305
|
inputSchema: {
|
|
1303
1306
|
type: "object",
|
|
1304
1307
|
properties: {
|
|
1305
1308
|
uuid: { type: "string", description: "File UUID." },
|
|
1309
|
+
offset: {
|
|
1310
|
+
type: "integer",
|
|
1311
|
+
description: "Character offset into the extracted text (default 0). Use next_offset from the previous call.",
|
|
1312
|
+
},
|
|
1313
|
+
max_chars: {
|
|
1314
|
+
type: "integer",
|
|
1315
|
+
description: "Characters of extracted text to return (default 8000, max 100000).",
|
|
1316
|
+
},
|
|
1306
1317
|
},
|
|
1307
1318
|
required: ["uuid"],
|
|
1308
1319
|
},
|
|
@@ -2150,8 +2161,9 @@ const TOOLS = [
|
|
|
2150
2161
|
description: "End date (YYYY-MM-DD).",
|
|
2151
2162
|
},
|
|
2152
2163
|
tev: {
|
|
2153
|
-
type: "number",
|
|
2154
|
-
description: "Total enterprise value in millions of tev_currency (stored on the project). Omit or null for unknown."
|
|
2164
|
+
type: ["number", "string"],
|
|
2165
|
+
description: "Total enterprise value in millions of tev_currency (stored on the project). Omit or null for unknown. " +
|
|
2166
|
+
"Send \"N/A\" when the deal has no TEV (shown as N/A, kept distinct from 0).",
|
|
2155
2167
|
},
|
|
2156
2168
|
tev_currency: {
|
|
2157
2169
|
type: "string",
|
|
@@ -2187,11 +2199,12 @@ const TOOLS = [
|
|
|
2187
2199
|
},
|
|
2188
2200
|
lost_reason: {
|
|
2189
2201
|
type: "string",
|
|
2190
|
-
description: "
|
|
2202
|
+
description: "Deal end reason: why the deal ended without closing (passed, missed, lost, busted, closed_lost, mandate_lost, dropped). Free text, optional.",
|
|
2191
2203
|
},
|
|
2192
2204
|
competitors: {
|
|
2193
2205
|
type: "string",
|
|
2194
|
-
description: "
|
|
2206
|
+
description: "Other banks pitching for this mandate, comma-separated (e.g. \"Evercore, William Blair\"), or \"No banker\". " +
|
|
2207
|
+
"Names matching the firm's competitor list take its spelling; others are kept as typed. Optional.",
|
|
2195
2208
|
},
|
|
2196
2209
|
participants: {
|
|
2197
2210
|
type: "array",
|
|
@@ -2378,8 +2391,9 @@ const TOOLS = [
|
|
|
2378
2391
|
start_date: { type: "string", description: "Start date (YYYY-MM-DD)." },
|
|
2379
2392
|
end_date: { type: "string", description: "End date (YYYY-MM-DD)." },
|
|
2380
2393
|
tev: {
|
|
2381
|
-
type: ["number", "null"],
|
|
2382
|
-
description: "Total enterprise value in millions of tev_currency. Set null to clear."
|
|
2394
|
+
type: ["number", "string", "null"],
|
|
2395
|
+
description: "Total enterprise value in millions of tev_currency. Set null to clear. " +
|
|
2396
|
+
"Send \"N/A\" when the deal has no TEV (shown as N/A, kept distinct from 0).",
|
|
2383
2397
|
},
|
|
2384
2398
|
tev_currency: {
|
|
2385
2399
|
type: ["string", "null"],
|
|
@@ -2415,11 +2429,12 @@ const TOOLS = [
|
|
|
2415
2429
|
},
|
|
2416
2430
|
lost_reason: {
|
|
2417
2431
|
type: ["string", "null"],
|
|
2418
|
-
description: "
|
|
2432
|
+
description: "Deal end reason: why the deal ended without closing (passed, missed, lost, busted, closed_lost, mandate_lost, dropped). Free text. Set null or '' to clear.",
|
|
2419
2433
|
},
|
|
2420
2434
|
competitors: {
|
|
2421
2435
|
type: ["string", "null"],
|
|
2422
|
-
description: "
|
|
2436
|
+
description: "Other banks pitching for this mandate, comma-separated (e.g. \"Evercore, William Blair\"), or \"No banker\". " +
|
|
2437
|
+
"Names matching the firm's competitor list take its spelling; others are kept as typed. Set null or '' to clear.",
|
|
2423
2438
|
},
|
|
2424
2439
|
participants: {
|
|
2425
2440
|
type: "array",
|
|
@@ -5020,7 +5035,7 @@ const PROSPECTING_ONLY_TOOLS = new Set([
|
|
|
5020
5035
|
"get_portfolio_prospect",
|
|
5021
5036
|
]);
|
|
5022
5037
|
function createServer() {
|
|
5023
|
-
const server = new Server({ name: "debreu-mcp", version: "2.
|
|
5038
|
+
const server = new Server({ name: "debreu-mcp", version: "2.218.0" }, { capabilities: { tools: {} }, instructions: SERVER_INSTRUCTIONS });
|
|
5024
5039
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
5025
5040
|
// Prospecting-only tenants see a narrowed catalog. whoami returns the
|
|
5026
5041
|
// allowlist. Preserve the standard catalog on errors, but opt-in Agents
|