@viewert/mcp 0.1.0 → 0.1.2

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
@@ -60,21 +60,12 @@ The Viewert tools will appear automatically.
60
60
  | `get_libram_context` | Fetch all AI-enabled Vellums from a Libram as **markdown** |
61
61
  | `get_libram_context_json` | Fetch AI-enabled Vellums as **structured JSON** (id, title, content) |
62
62
 
63
- ## Resources
64
-
65
- | URI | Description |
66
- |-----|-------------|
67
- | `librams://list` | JSON list of all your Librams |
68
- | `librams://{id}/context` | Markdown context for a specific Libram |
69
-
70
- ---
71
-
72
63
  ## Environment variables
73
64
 
74
65
  | Variable | Required | Default |
75
66
  |----------|----------|---------|
76
67
  | `VIEWERT_API_KEY` | ✅ Yes | — |
77
- | `VIEWERT_API_URL` | No | `https://viewert.com/api` |
68
+ | `VIEWERT_API_URL` | No | `https://www.viewert.com/api` |
78
69
 
79
70
  ---
80
71
 
@@ -83,13 +74,3 @@ The Viewert tools will appear automatically.
83
74
  > "Load my **Project Notes** Libram and summarise the key points."
84
75
 
85
76
  Claude will call `list_librams` to find the ID, then `get_libram_context` to pull the content — all inline in the conversation.
86
-
87
- ---
88
-
89
- ## Local development
90
-
91
- ```bash
92
- cd mcp
93
- pnpm install
94
- VIEWERT_API_KEY=vwt_... pnpm dev
95
- ```
package/dist/index.d.ts CHANGED
@@ -9,6 +9,6 @@
9
9
  * VIEWERT_API_KEY — your vwt_... API key from viewert.com/settings
10
10
  *
11
11
  * Optional env vars:
12
- * VIEWERT_API_URL — defaults to https://viewert.com/api
12
+ * VIEWERT_API_URL — defaults to https://www.viewert.com/api
13
13
  */
14
14
  export {};
package/dist/index.js CHANGED
@@ -9,13 +9,13 @@
9
9
  * VIEWERT_API_KEY — your vwt_... API key from viewert.com/settings
10
10
  *
11
11
  * Optional env vars:
12
- * VIEWERT_API_URL — defaults to https://viewert.com/api
12
+ * VIEWERT_API_URL — defaults to https://www.viewert.com/api
13
13
  */
14
14
  import { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js';
15
15
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
16
16
  import { z } from 'zod';
17
17
  const API_KEY = process.env.VIEWERT_API_KEY;
18
- const API_BASE = (process.env.VIEWERT_API_URL ?? 'https://viewert.com/api').replace(/\/$/, '');
18
+ const API_BASE = (process.env.VIEWERT_API_URL ?? 'https://www.viewert.com/api').replace(/\/$/, '');
19
19
  if (!API_KEY) {
20
20
  process.stderr.write('[viewert-mcp] ERROR: VIEWERT_API_KEY is not set.\n' +
21
21
  'Generate a key at https://viewert.com/settings and add it to your MCP config.\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewert/mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "MCP server for Viewert Librams — expose AI-enabled Vellums as context to any MCP-compatible AI client",
5
5
  "keywords": ["mcp", "viewert", "libram", "ai-context", "model-context-protocol"],
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * VIEWERT_API_KEY — your vwt_... API key from viewert.com/settings
10
10
  *
11
11
  * Optional env vars:
12
- * VIEWERT_API_URL — defaults to https://viewert.com/api
12
+ * VIEWERT_API_URL — defaults to https://www.viewert.com/api
13
13
  */
14
14
 
15
15
  import { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js'
@@ -17,7 +17,7 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
17
17
  import { z } from 'zod'
18
18
 
19
19
  const API_KEY = process.env.VIEWERT_API_KEY
20
- const API_BASE = (process.env.VIEWERT_API_URL ?? 'https://viewert.com/api').replace(/\/$/, '')
20
+ const API_BASE = (process.env.VIEWERT_API_URL ?? 'https://www.viewert.com/api').replace(/\/$/, '')
21
21
 
22
22
  if (!API_KEY) {
23
23
  process.stderr.write(