exponential-mcp 0.13.1 → 0.14.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 +35 -0
- package/dist/agentGuidance.js +3 -0
- package/dist/annotations.d.ts +11 -0
- package/dist/annotations.js +4 -0
- package/dist/domains/actions.js +12 -0
- package/dist/domains/areas.js +2 -0
- package/dist/domains/comments.js +7 -0
- package/dist/domains/contacts.js +7 -0
- package/dist/domains/databases.js +13 -0
- package/dist/domains/deals.js +8 -0
- package/dist/domains/decisions.js +14 -0
- package/dist/domains/epics.js +5 -0
- package/dist/domains/features.js +7 -0
- package/dist/domains/framework.d.ts +11 -0
- package/dist/domains/framework.js +18 -0
- package/dist/domains/goals.js +11 -0
- package/dist/domains/keyResults.js +11 -0
- package/dist/domains/labels.js +4 -0
- package/dist/domains/meetings.js +9 -0
- package/dist/domains/organizations.js +3 -0
- package/dist/domains/pages.js +10 -0
- package/dist/domains/positions.js +7 -0
- package/dist/domains/products.js +5 -0
- package/dist/domains/projects.js +4 -0
- package/dist/domains/requirements.js +4 -0
- package/dist/domains/scopes.js +4 -0
- package/dist/domains/stories.js +4 -0
- package/dist/domains/tickets.js +10 -0
- package/dist/domains/time.js +5 -0
- package/dist/domains/workspaces.js +2 -0
- package/dist/index.js +5 -855
- package/dist/runTools.js +5 -0
- package/dist/tools.d.ts +27 -0
- package/dist/tools.js +899 -0
- package/package.json +13 -1
package/dist/runTools.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { z } from 'zod';
|
|
19
19
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
20
|
+
import { reads, writes } from './annotations.js';
|
|
20
21
|
/** The run this server was started for, if any. */
|
|
21
22
|
export function runContextFromEnv(env = process.env) {
|
|
22
23
|
const runId = env.EXPONENTIAL_RUN_ID?.trim();
|
|
@@ -54,16 +55,20 @@ function schema(params) {
|
|
|
54
55
|
export const RUN_TOOLS = [
|
|
55
56
|
{
|
|
56
57
|
name: 'report_progress',
|
|
58
|
+
// Writes nothing: the runner records the note from the session's own tool stream.
|
|
59
|
+
annotations: reads('Report progress'),
|
|
57
60
|
description: 'Post a one-line progress note to this run\'s transcript (owner-visible only; nobody is notified). Use it when you move to a new phase of the work.',
|
|
58
61
|
inputSchema: schema(reportProgressParams),
|
|
59
62
|
},
|
|
60
63
|
{
|
|
61
64
|
name: 'ask_owner',
|
|
65
|
+
annotations: writes('Ask owner'),
|
|
62
66
|
description: 'Ask your owner a question you cannot answer yourself and PAUSE this run. The question is posted on the action mentioning the owner; their reply resumes the work in a new run. This must be your LAST call: do not call finish_run after it and do not keep working — stop immediately.',
|
|
63
67
|
inputSchema: schema(askOwnerParams),
|
|
64
68
|
},
|
|
65
69
|
{
|
|
66
70
|
name: 'finish_run',
|
|
71
|
+
annotations: writes('Finish run'),
|
|
67
72
|
description: 'Finish this run. Call it exactly once, as your last action, with a public summary and whether the action is ready for the owner to close. Never mark the action complete yourself; the owner confirms from their inbox.',
|
|
68
73
|
inputSchema: schema(finishRunParams),
|
|
69
74
|
},
|
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tool registry: every tool this package serves and how to run it.
|
|
3
|
+
*
|
|
4
|
+
* Imported by the stdio server (`index.ts`) and, as `exponential-mcp/tools`, by
|
|
5
|
+
* hosts that serve the same tools another way, such as the app's hosted MCP
|
|
6
|
+
* endpoint. It has no side effects: it reads no config, touches no files and
|
|
7
|
+
* never exits the process. The caller builds the `ExponentialClient`.
|
|
8
|
+
*/
|
|
9
|
+
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
10
|
+
import type { ExponentialClient } from 'exponential-sdk';
|
|
11
|
+
import { type RunContext } from './runTools.js';
|
|
12
|
+
export type { RunContext } from './runTools.js';
|
|
13
|
+
export interface ToolOptions {
|
|
14
|
+
/**
|
|
15
|
+
* The Agent run this session serves. The three run tools (`report_progress`,
|
|
16
|
+
* `ask_owner`, `finish_run`) are listed and callable only when it is set; a
|
|
17
|
+
* host that is not running an Agent run never passes it.
|
|
18
|
+
*/
|
|
19
|
+
runContext?: RunContext | null;
|
|
20
|
+
}
|
|
21
|
+
/** Every tool, in the order `tools/list` returns them. */
|
|
22
|
+
export declare function listTools(options?: ToolOptions): Tool[];
|
|
23
|
+
/**
|
|
24
|
+
* Run one tool as the principal `client` authenticates as. A failure comes back
|
|
25
|
+
* as an `isError` result rather than a throw, so a host can return it as is.
|
|
26
|
+
*/
|
|
27
|
+
export declare function callTool(client: ExponentialClient, name: string, args: Record<string, unknown> | undefined, options?: ToolOptions): Promise<CallToolResult>;
|