Skip to content

Commit 24dbf6e

Browse files
authored
Update MCP resource template and tool names (#3)
* Rename MCP resource template and tools * Update MCP documentation
1 parent 50ec08f commit 24dbf6e

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

public/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@
159159
list-style: none;
160160
}
161161

162+
#mcp ul li {
163+
margin-bottom: 1rem;
164+
}
165+
162166
#mcp dd {
163167
color: var(--text-secondary);
164168
}
@@ -474,7 +478,7 @@ <h3>Available Tools</h3>
474478
<ul>
475479
<li>
476480
<dl>
477-
<dt><code>search</code></dt>
481+
<dt><code>searchAppleDocumentation</code></dt>
478482
<dd><strong>Search Apple Developer documentation</strong>
479483
<br>Parameters: <code>query</code> (string)
480484
<br><em>Returns structured results with titles, URLs, descriptions, breadcrumbs, and
@@ -484,7 +488,7 @@ <h3>Available Tools</h3>
484488
</li>
485489
<li>
486490
<dl>
487-
<dt><code>fetch</code></dt>
491+
<dt><code>fetchAppleDocumentation</code></dt>
488492
<dd><strong>Fetch Apple Developer documentation by path</strong>
489493
<br>Parameters: <code>path</code> (string) - Full or relative documentation path
490494
<br><em>Returns documentation content as markdown</em>

public/llms.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ It might not be their fault!
55

66
Apple Developer docs are locked behind JavaScript,
77
making them invisible to most LLMs.
8-
If they try to fetch it, all they see is
9-
"This page requires JavaScript.
10-
Please turn on JavaScript in your browser and refresh the page to view its content."
8+
If they try to fetch it, all they see is:
9+
> This page requires JavaScript.
10+
> Please turn on JavaScript in your browser and refresh the page to view its content.
1111

1212
This service translates Apple Developer documentation pages into AI-friendly Markdown.
1313

@@ -51,15 +51,15 @@ Connect your MCP client to `https://sosumi.ai/mcp`:
5151

5252
### Available Tools
5353

54-
- `search` - Search Apple Developer documentation
54+
- `searchAppleDocumentation` - Search Apple Developer documentation
5555
- Parameters: `query` (string)
5656
- Returns structured results with titles,
5757
URLs,
5858
descriptions,
5959
breadcrumbs,
6060
and tags
6161

62-
- `fetch` - Fetch Apple Developer documentation by path
62+
- `fetchAppleDocumentation` - Fetch Apple Developer documentation by path
6363
- Parameters: `path` (string) - Full or relative documentation path
6464
- Returns documentation content as markdown
6565

src/lib/mcp.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function createMcpServer() {
1414

1515
// Register doc://{path} resource template
1616
server.registerResource(
17-
"documentation",
17+
"appleDocumentation",
1818
new ResourceTemplate("doc://{path}", { list: undefined }),
1919
{
2020
title: "Apple Documentation",
@@ -60,7 +60,7 @@ export function createMcpServer() {
6060

6161
// Register Apple search tool
6262
server.registerTool(
63-
"search",
63+
"searchAppleDocumentation",
6464
{
6565
title: "Search Apple Documentation",
6666
description: "Search Apple Developer documentation and return structured results",
@@ -163,7 +163,7 @@ export function createMcpServer() {
163163

164164
// Register documentation fetch tool (complements resource template for tool-only clients)
165165
server.registerTool(
166-
"fetch",
166+
"fetchAppleDocumentation",
167167
{
168168
title: "Fetch Apple Documentation",
169169
description: "Fetch Apple Developer documentation by path and return as markdown",

0 commit comments

Comments
 (0)