Skip to main content
Glama

Scrapbox Cosense MCP Server

by worldnine
get-page-url.ts988 B
import { createPageUrl } from "../../cosense.js"; export interface GetPageUrlParams { title: string; projectName?: string | undefined; } export async function handleGetPageUrl( defaultProjectName: string, _cosenseSid: string | undefined, params: GetPageUrlParams ) { try { const projectName = params.projectName || defaultProjectName; const title = String(params.title); const url = createPageUrl(projectName, title); return { content: [{ type: "text", text: url }] }; } catch (error) { return { content: [{ type: "text", text: [ 'Error details:', `Message: ${error instanceof Error ? error.message : 'Unknown error'}`, `Operation: get_page_url`, `Project: ${params.projectName || defaultProjectName}`, `Title: ${params.title}`, `Timestamp: ${new Date().toISOString()}` ].join('\n') }], isError: true }; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/worldnine/scrapbox-cosense-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server