Skip to content

insights: should an MCP server built into a product count as an MCP server you built? #24

Open

Description

@teocns

The question

The setup tool now finds MCP servers built into a person's own repos. Should one that only an outside AI client calls,
and their own Claude Code never does, count in "MCP servers you wrote", the row the level reads? Or should the page
show it without counting it?

The case

You work on a web shop. You add an MCP endpoint to it: a controller that answers tools/list and tools/call at
POST /api/mcp/catalog, a route, a runbook and a test. A customer's AI assistant calls it every day. Your own Claude
Code never connects to it, so no Claude Code config names it.

The page says "MCP servers you wrote: none of yours".

What the tool does today

"MCP servers you wrote" counts only servers inside a plugin of yours, read from Claude Code's configs. Since #18 the
scan also reads servers built into your repos from their files, into anatomy.json (mcp_built), and nothing reads
that list yet.

Whose a server is goes through ownership.py, like every other file. A program that only calls someone else's MCP
server is not read as one built.

What counting it would change

The level counts a kind of built thing toward L4 only when Claude Code used it in the last 30 days. A server only an
outside client calls never is, so counting it cannot reach L4. It does put one of your own things in place, which on
its own:

  • lifts a laptop from L1 to L2 ("could be L3") when no other setup of yours was found,
  • adds "could be L4" to an L3,
  • changes what the share summary sends for that thing.

Options

  1. Count it. Building an MCP server is L4 work, whoever calls it. The row and the Built tab need their own wording
    for it ("Tools you built for the agent" does not fit a product's endpoint).
  2. Show it, don't count it. A line on the Built tab, outside the level: it is product work for a client, not part of
    how you run your agent.
  3. Leave it out.

Before it is counted, whichever way

  • The page must not say "Claude Code never called it" without looking. A server set up in Claude Code whose script
    sits in that repo has calls of its own. Today it reads "can't tell", and it could be counted as built and used.
  • The Built tab decides "in use" in one function, things.in_use, so the Level tab and the Built tab agree.
  • Copies of one codebase under different folder names should count once.
  • When the scan reaches its cap on candidate files and finds nothing, that is "can't tell", not "none".

Raised in #18. The counting code is in that pull request's own commit, 9826b5e.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions