Frédérick Madore — Academic Record

io.github.fmadorev0.2.0更新于 Oct 9, 2026

Search and cite Frédérick Madore's publications, talks, research projects, DH work and CV.

概览

AI 生成的概览

让助手检索并引用 Frédérick Madore 的出版物、演讲、研究项目、数字人文成果和简历。

功能
围绕 frederickmadore.com 发布的学术记录提供十二个只读工具:search_publications、get_publication、search_communications、get_communication、search_activities、get_activity、list_research_projects、get_research_project、list_dh_projects、get_dh_project、get_cv 和 get_citation。搜索工具可按类型、标签、国家、项目、语言和年份范围筛选,并支持忽略重音符号的匹配;get_* 工具返回完整记录,包括摘要、DOI、小组议程和项目叙述。同样的七份 API 文档也以 MCP 资源形式暴露在 website://api/ 下。引用输出为 BibTeX 或纯文本参考文献。
适用场景
当你希望助手直接回答关于这位学者的出版物、演讲、项目或职业履历的问题,而不是去浏览网站时,适合使用。它只覆盖 Frédérick Madore 本人的学术成果,不包含他所研究的西非资料档案,后者是另一个服务器。
运行要求
以本地 stdio 进程运行。Claude Desktop 的安装包双击即可安装,无需 Node.js,因为 Claude Desktop 自带运行时。其他 MCP 客户端需要 Node 20 或更高版本,并克隆仓库后用 npm install 构建。需要网络访问该网站发布的 JSON 文档。可选设置包括 Site address、WEBSITE_API_TIMEOUT_MS 和 WEBSITE_API_CACHE_TTL_MS。未声明任何身份验证。
安装前请注意
只读:这些工具仅检索和获取记录,README 未描述任何写入、发送或删除操作。Claude Desktop 会提示发布者未经验证,README 称这是有意为之且不会改变。服务器通过 HTTP 获取网站的 JSON 文档,并在内存中缓存已验证的响应五分钟。自托管的 HTTP 模式可通过 MCP_BIND_HOST 绑定到 0.0.0.0,应谨慎设置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Frédérick Madore — Academic Record,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

website-mcp

An MCP server over the academic record published at frederickmadore.com. Connect it to Claude (or any MCP client) and ask questions about the publications, talks, research projects, digital humanities work, and CV instead of browsing for them.

What this is not. This server covers Frédérick Madore's own scholarship. The IWAC MCP server covers the West African source archive he studies. Different corpora — connect both if you want both.

Install (Claude Desktop)

Download frederickmadore-website.mcpb from the latest release and double-click it. Claude Desktop opens an install dialog; click Install. That is the whole procedure — no config file to edit, no terminal, and no need to have Node installed, since Claude Desktop supplies its own runtime.

Claude Desktop will warn that the publisher is unverified. That is expected and permanent — see Why the bundle is unsigned.

Every commit also builds the bundle: open the latest run under Actions and download the mcpb artifact if you want an unreleased build. To build it yourself, see Commands below.

There is one optional setting, Site address, in the extension's configuration pane. Leave it blank unless you are developing against unpublished content.

Check it works

Ask: "What has Frédérick Madore published about religious activism on campuses?"

Install (other clients)

Anything that speaks MCP over stdio can run the server directly. This path uses the developer build rather than the bundle, so it needs Node 20 or newer.

bash
git clone https://github.com/fmadore/Website.gitcd Websitenpm install          # also builds the server

Claude Code:

bash
claude mcp add frederickmadore -- node /absolute/path/to/Website/mcp/dist/index.js

Anything reading mcpServers JSON:

json
{	"mcpServers": {		"frederickmadore": {			"command": "node",			"args": ["/absolute/path/to/Website/mcp/dist/index.js"]		}	}}

Tools

ToolWhat it does
search_publicationsSearch books, articles, chapters, reports, theses. Filter by type, tag, country, project, language, year range.
get_publicationOne publication in full — abstract, DOI/ISBN/ISSN, table of contents, citing works, published reviews.
search_communicationsSearch conference papers, lectures, seminars, workshops, panels, podcasts.
get_communicationOne talk in full, including panel programmes and participants.
search_activitiesSearch news and activity entries, matching against their full body text.
get_activityOne activity in full, including its complete body text.
list_research_projectsAll research projects, each listing the ids of its publications, talks, grants and fieldwork.
get_research_projectOne project in full: its complete narrative, span, regions, source languages, funding, cross-references.
list_dh_projectsDigital archives, datasets and tools, with skills, awards and reviews.
get_dh_projectOne digital humanities project in full.
get_cvThe career record. Optionally one section (grants, teaching, awards, …).
get_citationBibTeX, or a plain-text reference.

Search matches accent-insensitively, so cote d'ivoire reaches Côte d'Ivoire. type and country match a whole value (Niger does not reach Nigeria, nor article a bulletin-article); tag, project and language match any part of one. Search results are paginated with limit and offset, and every tool returns both a readable text block and schema-validated structured content.

The site registers the same twelve tools in the browser for agents visiting it, through WebMCP (src/lib/utils/webmcp.ts). Both read the same API documents through the same loader, search and citation code in src/lib/utils/api*.ts, so the two cannot drift.

Search returns headlines; the get_* tools return whole records. Every dataset carries its full text — publication and talk abstracts, activity bodies, project descriptions, and the research narratives — so nothing on the site is searchable but unreadable.

Resources

The same seven API documents are also exposed as MCP resources under website://api/: the discovery manifest, research, publications, communications, activities, digital humanities projects, and the CV. Tools are the efficient path for filtered questions; resources are the complete, URI-addressable datasets for clients that want the data plane directly.

How it works

The server reads the site's published JSON documents (/api/*.json) over HTTP and holds validated responses in memory for five minutes. Concurrent requests share one fetch, and failed requests can be retried. There is no database, no search index, and no data of its own: the corpus is a few hundred records, so a linear scan is cheaper than the machinery needed to avoid one. The next request after expiry picks up new content.

WEBSITE_API_TIMEOUT_MS bounds the complete fetch, including the response body (default 10,000 ms). WEBSITE_API_CACHE_TTL_MS sets the cache lifetime (default 300,000 ms). Both accept milliseconds: the timeout must be positive; a zero TTL disables persistent caching. Incompatible API versions and malformed documents are rejected before caching.

The server uses the stable TypeScript SDK v2. serveStdio() and createMcpHandler() serve both the stateless 2026-07-28 protocol and legacy 2025-era clients from the same server factory, so the tool and resource surfaces cannot diverge between transports. Modern tools/list, resources/list, and resources/read responses advertise a one-hour public cache hint.

Streamable HTTP

Build and run the stateless remote endpoint locally:

bash
npm run mcp:buildnpm run start:http -w mcp

The MCP endpoint is http://localhost:7860/mcp; / and /healthz return a small health document. Local runs bind to 127.0.0.1. Set MCP_BIND_HOST=0.0.0.0 deliberately for containers or public hosting; Hugging Face Spaces select this automatically when SPACE_HOST is present. PORT and WEBSITE_API_BASE remain configurable.

Host and Origin guards use the SDK validators. Loopback hostnames and SPACE_HOST are trusted; add comma-separated hostnames (without scheme or port) through ALLOWED_HOSTS and, separately, ALLOWED_ORIGIN_HOSTS. The Origin policy is hostname-based; ports on those trusted hosts are not restricted. Native clients without Origin are accepted; untrusted, malformed, and null origins are rejected. Forwarded headers do not override these guards; configure the proxy's actual Host.

get_citation is not reimplemented here — the build aliases $lib and bundles the site's own bibtexGenerator and citationFormatter, so the BibTeX this returns is byte-identical to the site's download button. Only BibTeX and a plain reference are offered because those are the only formats the site itself generates; adding APA/MLA/Chicago is a change to src/lib/utils, after which it lands here for free.

Developing against unpublished content

Point the server at a local build instead of the live site:

bash
npm run build            # at the repo root, produces build/api/*.jsonnpm run preview          # serves it on :4173WEBSITE_API_BASE=http://localhost:4173 node mcp/dist/index.js

Commands

CommandWhat it does
npm run mcp:buildBuild the stdio, HTTP, and shared server bundles in mcp/dist/
npm run mcp:packBuild the installable mcp/dist/frederickmadore-website.mcpb
npm run mcp:checkType-check
npm run mcp:smokeBuild both, then drive each over the protocol against a local build of the site
npm testUnit tests (search and ranking), run with the site's suite

npm run mcp:smoke needs npm run build at the repo root first. It exercises the developer build and the server unpacked back out of the .mcpb — the artifact people actually install — and drives the same factory over stateless Streamable HTTP. Both modern and legacy protocol eras are covered. CI runs the whole thing on every pull request, so a renamed API field, a broken tool registration, or a bundle that fails to start is caught there.

Releasing

Push a tag, or use Actions → Release MCP bundle → Run workflow:

bash
git tag mcp-v0.3.0 && git push origin mcp-v0.3.0

The workflow type-checks, builds the site, builds and smoke-tests the bundle against real API documents, and only then publishes it as a release asset. Nothing ships that has not booted.

Publishing to the MCP Registry

server.json is the server's entry for the official MCP Registry (in preview), as io.github.fmadore/frederickmadore-website. The registry stores metadata only: the entry points at the release's .mcpb and records its SHA-256, which clients check before installing. The committed file describes the latest release, 0.2.0.

The hash must be the hash of the uploaded file. The bundle is a zip with build timestamps, so a local rebuild of the same commit hashes differently. The release workflow therefore stamps server.json for the bundle it publishes (scripts/stamp-mcp-registry.mjs) and attaches it to the same release. Publishing stays manual, and needs a GitHub sign-in as fmadore:

  1. Release as above, then fetch that release's entry (here 0.3.0):

    bash
    gh release download mcp-v0.3.0 --repo fmadore/Website --pattern server.json --dir mcp --clobber

    To publish 0.2.0, skip this step: the committed file is already its entry.

  2. Install mcp-publisher from the registry's releases (the quickstart has one-line installs for each platform, including Windows on ARM).

  3. From mcp/, check the entry, sign in, and publish:

    bash
    mcp-publisher validatemcp-publisher login githubmcp-publisher publish

    validate sends the file to the registry's validation endpoint; login github opens GitHub's device flow; publish reads ./server.json.

  4. Confirm the listing, then commit the fetched server.json, so the repo records what was published:

    bash
    curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.fmadore/frederickmadore-website"

npm test checks the committed entry against the registry's limits (scripts/mcp-registry.test.mjs). The step could later run in release-mcp.yml through mcp-publisher login github-oidc, which needs id-token: write and no stored secret.

Why the bundle is unsigned

Claude Desktop warns that the publisher is unverified. That is deliberate and will not change.

mcpb verifies a signature by shelling out to the OS trust store — security verify-cert -p codeSign on macOS, the PowerShell equivalent on Windows — so only a certificate issued by a recognised CA clears the warning. Those cost money annually and require validating your identity; this project does not buy one.

mcpb sign --self-signed is not a workaround. A certificate chaining to nothing trusted verifies as unsigned, so the file gains ~2 KB and nothing else — including in Claude Desktop, which uses this same verification code. An honest unsigned bundle is better than a signature the loader ignores.

How the bundle is built

pack.mjs inlines every dependency into one minified file (no node_modules/ to ship), targets Node 20 rather than 24 since Claude Desktop supplies the runtime, and writes a package.json marking the output as ESM. The manifest's tool list is not hand-written: the script starts the freshly built server, asks it over the protocol what tools it has, and writes the answer. A hand-maintained list is a second source of truth that drifts the moment a tool is renamed.

The archive is written with fflate directly rather than through the @anthropic-ai/mcpb CLI. That CLI packs with exactly this call — zipSync at level 9, Unix mode bits in the external attributes — but it also pulls in @inquirer/prompts for its interactive init wizard, and with it a tmp carrying two unfixed high-severity advisories. Nothing here runs init, so that was 171 packages and a failing npm audit in exchange for one zipSync call. Manifest validation is a short required-field check in pack.mjs, which is the part that matters for a manifest generated from a fixed template.

来源:mcp/README.md,提交 3f838bf

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.2.0最新Oct 9, 2026