Wisp Study 中文 GitHub

Tutorial 25 · Follow up

Go on in another AI client

You have talked a paper through in Wisp Study, and the next step is to write code or run an analysis: work for a program like Claude Code. There is no need to copy the discussion over. Let the app serve MCP, tell the client “pick up the discussion I just had in Study”, and it reads that conversation with its sources, then goes to the original text.

Scenario
In “Plant single-cell transcriptomics” you discuss a paper that compares species, understand the test it uses, and want that test as a Python function, written in Claude Code.
Needs
A paper with its PDF stored, and a model provider; Claude Code installed, or another client that supports MCP (Streamable HTTP).
Time
About 10 minutes.

1Discuss it in Wisp Study first

Open the 2025 Nature Communications paper Orthologous marker groups and switch to “Ask”. It compares the cell clusters of two species with a statistical test. First get the test clear:

Ask

How does this paper decide whether cell clusters of two species are the same cell type? Which numbers does its test compare? Write the formulas and give the page and the exact sentence.

The paper's conversation on the left, its PDF on the right. The answer has typeset formulas: the definitions of X, Y, Z and W, and the line with fisher.test; the paragraph below says that the extracted text for W is garbled, that it was read as the grand total minus X, Y and Z, and to check this against the PDF.
Figure 1. The answer gives the formulas of the four numbers, and says where it is not sure: the line for W is its own reading.

It is Fisher's exact test: how many marker groups a pair of clusters shares (X) is compared with how many each of them shares with the other clusters (Y, Z, W). Note the paragraph below the formulas: the expression for W came out of the PDF garbled, the assistant put the minus signs in by sense, and it tells you to check. Keep that for later.

Then ask “What is the significance threshold? How do the authors make sure that the similarity is not due to chance?” The answer: a corrected p value (q value) below 0.01. The method is clear now, and the next step is to write it as code.

2Start the MCP server

Open “Settings › General”, scroll down to “MCP server” and click “Start”. The line under “Local MCP server” turns green and reads “Running: http://127.0.0.1:4878/mcp”, and “Copy config” and “Stop” appear on the right:

The lower half of Settings › General. In the group “MCP server”, “Local MCP server” reads Running: http://127.0.0.1:4878/mcp, with “Copy config” and “Stop” on the right; “Start with Wisp Study” is off; the port is 4878. Below in small print: only requests from this computer that carry the token are accepted; the token is in the config you copy. The server stops when the app quits.
Figure 2. After the server has started. “Reopen where you left off”, further up on the same page, has to be on for the client to know what you are looking at.
  • Only programs on this computer can connect, and they have to carry the token. It is made the first time the server starts and stays the same.
  • The server is off by default and stops when the app quits; with the window closed and the app left in the background it goes on serving. If you use it every day, turn on “Start with Wisp Study”.
  • If another program already uses port 4878, enter another one under “Port”, stop the server and start it again, and change the port in the client too.
  • “Reopen where you left off” on the same page is on by default. Leave it on: it is how the client knows which library, paper and conversation the window has open.

3Add it to Claude Code

Click “Copy config”. This is what you get, with your token in place of …:

The copied configuration
{
  "mcpServers": {
    "wisp-study": {
      "type": "http",
      "url": "http://127.0.0.1:4878/mcp",
      "headers": {
        "Authorization": "Bearer …"
      }
    }
  }
}

Claude Code reads this form as it is: save it as .mcp.json in the folder you work in. Other clients have their own configuration files and may name the fields differently, so see their documentation. With Claude Code a command does it too; take the token from the configuration above:

Command line
$ claude mcp add --transport http wisp-study http://127.0.0.1:4878/mcp --header "Authorization: Bearer …"

Added this way it holds for the current folder only; to have it in every folder, add --scope user.

4Pick up the discussion

Click “Back” in Wisp Study so that the conversation stays in the window. Then open Claude Code in the folder for your code and say what you want:

To Claude Code

Pick up the discussion I just had in Study. Write that test as a Python function, the way the paper does it. Before you write it, check the original text on page 9 and compare the formulas term by term. Then make up a small example and run it.

It was given neither the paper's name nor any pasted text. These are the tools it called, in order (the first time each is used, Claude Code asks whether you agree):

The tools Claude Code called; what they returned is shortened
list_libraries
  # openLibrary: L-1794919865367-65179074   Plant single-cell transcriptomics
  # openPaper: P-1794919877582-dc124f18     the paper open in the window
  # openConversation: C-1796355155199-51a09a6515752558
read_conversation  C-1796355155199-51a09a6515752558
  # two questions, two answers, the paper ID, page and sentence of each source
read_fulltext  P-1794919877582-dc124f18  page 9, pages 1
  # the text of page 9
get_paper  P-1794919877582-dc124f18
  # the record, and where the PDF is on this computer

On page 9 it met the same garbled line: the extracted text is W = XN, M j, i = 1 OMG½i, j X Y Z, without minus signs. So it went to the PDF file itself, at the place get_paper gave. Its own PDF reading needs a program this computer does not have, so it drew page 9 as a picture with a Python library that was already there, looked at it, and found the three minus signs.

Then it wrote omg_test.py, made up an example of three clusters against three and ran it, all in a little over a minute:

Output of the example, excerpt
pair                   shared          p     q (BH)  q<0.01
q_xylem / r_xylem          40   1.47e-12   6.62e-12  yes
q_cortex / r_xylem         15   9.99e-01   1.00e+00  no
q_cortex / r_cortex        35   5.09e-10   1.53e-09  yes
q_hair / r_hair            30   4.66e-13   4.20e-12  yes

Its final answer has a table that sets the paper's formulas against the code, term by term. More worth reading is its list of “choices I made, and limits”:

  • The paper only says that an FDR correction was applied, not which one; it used Benjamini–Hochberg.
  • It takes the top 200 genes first and maps them to groups afterwards; several genes of a cluster in the same orthologous group count once. Page 9 does not spell this out.
  • On page 9 the letter N is the number of clusters in species 2, on page 2 the number of marker genes; the code calls the latter top_n.

It also said what it had not done: R is not installed on this computer, so the function was not compared with the fisher.test the paper uses. Do that once before you rely on it.

5Back to the window for a look at the page

Both assistants said the same thing: the line for W is garbled in the extracted text. One read it by sense, the other from a picture of the page. The last look is yours. Open the PDF in the window, go to page 9 and zoom to 200%:

The reading layout, page 9, 200%: in the left column the fisher.test line of equation (1), below it four lines defining X, Y, Z and W, where W is the sum of OMG[i,j] minus X minus Y minus Z; the paragraph after them says that an FDR correction was applied and that the threshold is a q-value of 0.01.
Figure 3. W in the paper: the total minus X, minus Y, minus Z. The paragraph below has the FDR correction and the threshold of 0.01.

All three minus signs are there, and under the sums of Y and Z stand j ≠ J and i ≠ I, as in the code. The paragraph that follows says “an FDR correction” and indeed not which one.

6What it can read and what it can change

  • Conversations are read-only. The client can read your conversations but not write into them, and what you discuss in Claude Code does not come back into a conversation in Wisp Study.
  • Libraries can be changed. The server has the same tools as wisp mcp, including those that change data, such as creating a library, importing and writing a manuscript. When the client calls one, it is done; Wisp Study does not ask you again. When the client itself asks, read the tool's name before you agree.
  • If it should only read, do not use the server the window starts but wisp mcp --read-only; Keep up with new papers shows how to set it up. It can read conversations too.
  • What it cannot read: of pictures sent with a question it gets only the number, not the picture; and a conversation on the home page that has not become a library yet is not handed over as the one open.

Recap

  • Under “Settings › General › MCP server” click “Start”, then “Copy config”, and paste it into the client; only programs on this computer that carry the token can connect.
  • Tell the client “pick up the discussion I just had in Study”: it learns from list_libraries what the window has open, reads the conversation and its sources with read_conversation, and then the original text by page.
  • This time it wrote the paper's test as a function and said which points the paper leaves open and it decided itself.
  • Text extracted from a PDF loses symbols of its formulas; for a formula, go back to the window and look at the page.
  • The server the window starts can change libraries; for reading only, use wisp mcp --read-only.