openalmanac 0.2.10 → 0.2.11
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/dist/server.js +14 -4
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -4,12 +4,22 @@ import { registerArticleTools } from "./tools/articles.js";
|
|
|
4
4
|
import { registerResearchTools } from "./tools/research.js";
|
|
5
5
|
import { registerCommunityTools } from "./tools/communities.js";
|
|
6
6
|
import { getApiKey } from "./auth.js";
|
|
7
|
-
import { openBrowser } from "./browser.js";
|
|
8
|
-
const NEXT_STEPS_URL = "https://www.openalmanac.org/contribute/next-steps";
|
|
9
7
|
export function createServer() {
|
|
10
|
-
// On first run (no API key), open the next-steps page so the user knows what to do
|
|
11
8
|
if (!getApiKey()) {
|
|
12
|
-
|
|
9
|
+
console.error(`
|
|
10
|
+
┌──────────────────────────────────────────────────┐
|
|
11
|
+
│ │
|
|
12
|
+
│ Welcome to OpenAlmanac │
|
|
13
|
+
│ │
|
|
14
|
+
│ Try asking your agent: │
|
|
15
|
+
│ │
|
|
16
|
+
│ → "Write an Almanac article about CORS" │
|
|
17
|
+
│ → "Improve the Alan Turing article" │
|
|
18
|
+
│ │
|
|
19
|
+
│ Docs: openalmanac.org/contribute │
|
|
20
|
+
│ │
|
|
21
|
+
└──────────────────────────────────────────────────┘
|
|
22
|
+
`);
|
|
13
23
|
}
|
|
14
24
|
const server = new FastMCP({
|
|
15
25
|
name: "OpenAlmanac",
|