@mdtidy/mcp 1.0.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 ADDED
@@ -0,0 +1,41 @@
1
+ # @mdtidy/mcp
2
+
3
+ Model Context Protocol server for **[mdtidy.com](https://mdtidy.com)** — clean,
4
+ convert, save, and share Markdown from any AI agent.
5
+
6
+ ## Use it
7
+
8
+ Create an API key at <https://mdtidy.com/account/api-keys>, then:
9
+
10
+ ```bash
11
+ # Claude Code
12
+ claude mcp add mdtidy --env MDTIDY_API_KEY=mt_live_… -- npx -y @mdtidy/mcp
13
+ ```
14
+
15
+ ```json
16
+ // Any stdio client (.mcp.json / client MCP config)
17
+ {
18
+ "mcpServers": {
19
+ "mdtidy": {
20
+ "command": "npx",
21
+ "args": ["-y", "@mdtidy/mcp"],
22
+ "env": { "MDTIDY_API_KEY": "${MDTIDY_API_KEY}" }
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ Or point any client at the hosted `https://mdtidy.com/mcp` with
29
+ `Authorization: Bearer mt_live_…`.
30
+
31
+ ## Entry points
32
+
33
+ - `mdtidy-mcp` (bin) — stdio server. Reads `MDTIDY_API_KEY` (and optional
34
+ `MDTIDY_BASE_URL`).
35
+ - `@mdtidy/mcp/http` — `createMcpRouteHandler()`, the stateless Streamable-HTTP
36
+ handler the mdtidy `/mcp` route mounts.
37
+ - `@mdtidy/mcp` — library exports (`registerTools`, `REGISTRY`, `createMdtidyClient`, …).
38
+
39
+ Full tool reference: <https://github.com/mdtidy/mdtidy-agents/blob/main/docs/tools.md>.
40
+
41
+ MIT.
package/dist/bin.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import '@mdtidy/mcp-core';
3
+ import '@mdtidy/tools';
4
+ import '@mdtidy/client';
package/dist/bin.js ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ startStdio
4
+ } from "./chunk-TABPKZQW.js";
5
+
6
+ // src/bin.ts
7
+ startStdio().catch((err) => {
8
+ console.error(`[mdtidy-mcp] ${err instanceof Error ? err.message : String(err)}`);
9
+ process.exit(1);
10
+ });
11
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\n// @mdtidy/mcp stdio CLI — `npx -y @mdtidy/mcp`. Reads MDTIDY_API_KEY from the\n// environment and serves the MCP tools over stdio to a local client.\n\nimport { startStdio } from '@mdtidy/mcp-core';\n\nstartStdio().catch((err: unknown) => {\n console.error(`[mdtidy-mcp] ${err instanceof Error ? err.message : String(err)}`);\n process.exit(1);\n});\n"],"mappings":";;;;;;AAMA,WAAW,EAAE,MAAM,CAAC,QAAiB;AACnC,UAAQ,MAAM,gBAAgB,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC,EAAE;AAChF,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}