@talonic/mcp 0.1.6 → 0.1.8

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Official Talonic MCP server. Lets AI agents extract structured, schema-validated data from any document via the [Model Context Protocol](https://modelcontextprotocol.io).
4
4
 
5
- > **Status:** v0.1.6. Seven tools and one resource live: `talonic_extract`, `talonic_search`, `talonic_filter`, `talonic_get_document`, `talonic_to_markdown`, `talonic_list_schemas`, `talonic_save_schema`, plus the `talonic://schemas` resource. Verified end-to-end against production.
5
+ > **Status:** v0.1.6. Listed on the [official MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.talonicdev/talonic-mcp`. Seven tools and one resource live: `talonic_extract`, `talonic_search`, `talonic_filter`, `talonic_get_document`, `talonic_to_markdown`, `talonic_list_schemas`, `talonic_save_schema`, plus the `talonic://schemas` resource. Verified end-to-end against production.
6
6
 
7
7
  ## Why an agent should use this
8
8
 
@@ -0,0 +1,121 @@
1
+ /** HTTP method for API endpoint blocks. */
2
+ type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
3
+ /** A single parameter row in a param-table block. */
4
+ interface Param {
5
+ name: string;
6
+ type: string;
7
+ required?: boolean;
8
+ description: string;
9
+ default?: string;
10
+ }
11
+ /**
12
+ * A single content block. The union discriminates on `type`.
13
+ *
14
+ * Text fields use lightweight inline markup:
15
+ * - `**bold**` for strong emphasis
16
+ * - `` `code` `` for inline code
17
+ * - `[text](url)` for links
18
+ */
19
+ type DocBlock = {
20
+ type: 'heading';
21
+ level: 2 | 3;
22
+ id: string;
23
+ text: string;
24
+ } | {
25
+ type: 'paragraph';
26
+ text: string;
27
+ } | {
28
+ type: 'code';
29
+ language?: string;
30
+ title?: string;
31
+ code: string;
32
+ } | {
33
+ type: 'callout';
34
+ variant?: 'info' | 'warning';
35
+ text: string;
36
+ } | {
37
+ type: 'param-table';
38
+ title?: string;
39
+ params: Param[];
40
+ } | {
41
+ type: 'list';
42
+ ordered?: boolean;
43
+ items: string[];
44
+ } | {
45
+ type: 'endpoint';
46
+ method: HttpMethod;
47
+ path: string;
48
+ summary: string;
49
+ description?: string;
50
+ blocks: DocBlock[];
51
+ };
52
+ /** Navigation section for sidebar rendering. */
53
+ interface NavSection {
54
+ id: string;
55
+ label: string;
56
+ children?: {
57
+ id: string;
58
+ label: string;
59
+ }[];
60
+ }
61
+ /**
62
+ * A fully-resolved documentation section ready for SEO page rendering.
63
+ */
64
+ interface DocSection {
65
+ slug: string;
66
+ parentSlug: string;
67
+ title: string;
68
+ seoTitle: string;
69
+ description: string;
70
+ breadcrumbs: {
71
+ label: string;
72
+ slug: string;
73
+ }[];
74
+ content: DocBlock[];
75
+ related: {
76
+ label: string;
77
+ slug: string;
78
+ }[];
79
+ faq: {
80
+ question: string;
81
+ answer: string;
82
+ }[];
83
+ mentions: string[];
84
+ prev: {
85
+ slug: string;
86
+ label: string;
87
+ } | null;
88
+ next: {
89
+ slug: string;
90
+ label: string;
91
+ } | null;
92
+ }
93
+ /**
94
+ * Raw section data before prev/next and breadcrumbs are derived.
95
+ */
96
+ interface RawSection {
97
+ slug: string;
98
+ parentSlug: string;
99
+ title: string;
100
+ seoTitle: string;
101
+ description: string;
102
+ content: DocBlock[];
103
+ related: {
104
+ label: string;
105
+ slug: string;
106
+ }[];
107
+ faq: {
108
+ question: string;
109
+ answer: string;
110
+ }[];
111
+ mentions: string[];
112
+ }
113
+
114
+ declare const MCP_NAV_SECTIONS: NavSection[];
115
+
116
+ /** Get a single MCP section by slug, or null if not found. */
117
+ declare function getMcpSection(slug: string): DocSection | null;
118
+ /** Get all MCP sections in reading order. */
119
+ declare function getAllMcpSections(): DocSection[];
120
+
121
+ export { type DocBlock, type DocSection, type HttpMethod, MCP_NAV_SECTIONS, type NavSection, type Param, type RawSection, getAllMcpSections, getMcpSection };