matome-mcp-server 0.0.3 → 0.0.4
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/LICENSE +1 -1
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "dotenv/config";
|
|
|
3
3
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
4
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
5
|
import { ListToolsRequestSchema, CallToolRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
6
|
-
const MATOME_API_BASE = "https://matome.
|
|
6
|
+
const MATOME_API_BASE = "https://matome.url-storage.com//api/mcp";
|
|
7
7
|
const server = new Server({
|
|
8
8
|
name: "matome",
|
|
9
9
|
version: "1.0.0",
|
|
@@ -17,11 +17,10 @@ async function makeMatomeRequest() {
|
|
|
17
17
|
const Url = `${MATOME_API_BASE}`;
|
|
18
18
|
const UID = process.env.USER_ID;
|
|
19
19
|
const response = await fetch(Url, {
|
|
20
|
-
method: "
|
|
20
|
+
method: "GET",
|
|
21
21
|
headers: {
|
|
22
|
-
|
|
22
|
+
uid: UID ? UID : "",
|
|
23
23
|
},
|
|
24
|
-
body: JSON.stringify({ uid: UID }),
|
|
25
24
|
});
|
|
26
25
|
if (response.status !== 200) {
|
|
27
26
|
return { content: [{ type: "text", text: "matome fetch Error!!" }] };
|