football-docs 0.6.0 → 0.6.1
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/bin/serve.js +6 -1
- package/data/docs.db +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/bin/serve.js
CHANGED
|
@@ -3,4 +3,9 @@ import { resolve, dirname } from "node:path";
|
|
|
3
3
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
4
|
|
|
5
5
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
await import(pathToFileURL(resolve(__dirname, "..", "dist", "index.js")).href);
|
|
6
|
+
const { main } = await import(pathToFileURL(resolve(__dirname, "..", "dist", "index.js")).href);
|
|
7
|
+
|
|
8
|
+
main().catch((error) => {
|
|
9
|
+
console.error("Failed to start football-docs MCP server:", error);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
});
|
package/data/docs.db
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -15,3 +15,4 @@ export { sanitiseFtsQuery } from "./tools.js";
|
|
|
15
15
|
export declare function openDb(): Database.Database;
|
|
16
16
|
export declare function openQueueDb(): Database.Database;
|
|
17
17
|
export declare function createFootballDocsServer(): McpServer;
|
|
18
|
+
export declare function main(): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -128,7 +128,7 @@ export function createFootballDocsServer() {
|
|
|
128
128
|
}, { readOnlyHint: true, destructiveHint: false, openWorldHint: true }, async (args) => resolveEntity(args));
|
|
129
129
|
return server;
|
|
130
130
|
}
|
|
131
|
-
async function main() {
|
|
131
|
+
export async function main() {
|
|
132
132
|
const transport = new StdioServerTransport();
|
|
133
133
|
await createFootballDocsServer().connect(transport);
|
|
134
134
|
}
|
package/package.json
CHANGED