@thallylabs/mcp 0.7.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/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/index.js +2393 -0
- package/dist/tools.d.ts +25 -0
- package/dist/tools.js +2354 -0
- package/dist/track.d.ts +140 -0
- package/dist/track.js +219 -0
- package/package.json +69 -0
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Where a tool operates:
|
|
5
|
+
* - `project` — reads/writes a local Thally project directory (`projectDir`).
|
|
6
|
+
* - `site` — queries a deployed Thally site over HTTP (`siteUrl`).
|
|
7
|
+
*
|
|
8
|
+
* The remote MCP endpoint (A6) exposes only what's safe over HTTP; the docs
|
|
9
|
+
* agent (A1) drives the `project` tools against a checked-out docs repo. Both
|
|
10
|
+
* consume this one registry instead of re-declaring the tools.
|
|
11
|
+
*/
|
|
12
|
+
type ToolScope = 'project' | 'site';
|
|
13
|
+
interface ToolDefinition {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
scope: ToolScope;
|
|
17
|
+
schema: z.ZodObject<z.ZodRawShape>;
|
|
18
|
+
handler: (input: unknown) => Promise<string>;
|
|
19
|
+
}
|
|
20
|
+
/** The single source of truth for Thally's MCP/agent tools. */
|
|
21
|
+
declare const tools: Array<ToolDefinition>;
|
|
22
|
+
/** Look up a tool by its registered name. */
|
|
23
|
+
declare function getTool(name: string): ToolDefinition | undefined;
|
|
24
|
+
|
|
25
|
+
export { type ToolDefinition, type ToolScope, getTool, tools };
|