Skip to content

Commit 5d8dbcd

Browse files
committed
Add Mobile v4 Getting Started page for the public Docs MCP server.
Document the hosted, no-key NativePHP docs MCP under getting-started (order 275) with connect snippets and a short tool list, linking out to /mcp for the full client matrix.
1 parent 77dfa2b commit 5d8dbcd

2 files changed

Lines changed: 77 additions & 0 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: MCP Docs Server
3+
order: 275
4+
---
5+
6+
The full NativePHP documentation — for both [Mobile](/docs/mobile/getting-started/introduction) and [Desktop](/docs/desktop/getting-started/introduction) — is available over [MCP](https://modelcontextprotocol.io). Agents such as Claude Code, Cursor, and Copilot can search and read the docs while they work, instead of relying on training-data memory alone.
7+
8+
It's hosted by NativePHP. There's nothing to install and no API key to create — just point your agent at this URL:
9+
10+
```
11+
https://nativephp.com/api/mcp/message
12+
```
13+
14+
## Quick connect
15+
16+
### Claude Code
17+
18+
```shell
19+
claude mcp add --transport http nativephp-docs https://nativephp.com/api/mcp/message
20+
```
21+
22+
Or commit `.mcp.json` to your repo so the whole team picks it up:
23+
24+
```json
25+
{
26+
"mcpServers": {
27+
"nativephp-docs": {
28+
"type": "http",
29+
"url": "https://nativephp.com/api/mcp/message"
30+
}
31+
}
32+
}
33+
```
34+
35+
### Cursor
36+
37+
Create `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` to enable it everywhere:
38+
39+
```json
40+
{
41+
"mcpServers": {
42+
"nativephp-docs": {
43+
"type": "http",
44+
"url": "https://nativephp.com/api/mcp/message"
45+
}
46+
}
47+
}
48+
```
49+
50+
## What your agent can do
51+
52+
Once connected, your agent gets these tools:
53+
54+
- **`search_docs`** — full-text search across every platform and version
55+
- **`get_page`** — fetch a full page by path (e.g. `mobile/4/plugins/core/camera`)
56+
- **`get_navigation`** — the sidebar for a platform and version
57+
- **`list_apis`** — list pages in a version's `apis` section (Mobile v1/v2 only)
58+
- **`search_plugins`** — search the public plugin marketplace
59+
- **`get_plugin`** — fetch one marketplace plugin by composer name
60+
61+
## Pair it with Laravel Boost
62+
63+
This MCP tells your agent what NativePHP _can_ do. [Laravel Boost](https://laravel.com/ai/boost) tells it about _your_ application — routes, models, config, and package versions. Running both together works better than either alone.
64+
65+
## More clients and details
66+
67+
For VS Code / Copilot, `mcp-remote`, REST mirrors, rate limits, and the full client matrix, see the [Docs MCP Server](/mcp) page.

tests/Feature/DocsMcpServerPageTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,14 @@ public function the_docs_no_longer_carry_a_duplicate_copy_of_this_page(): void
137137
'The MCP server is documented once, at '.route('mcp').'.',
138138
);
139139
}
140+
141+
#[Test]
142+
public function mobile_v4_getting_started_documents_the_public_mcp_endpoint(): void
143+
{
144+
$this->withoutVite()
145+
->get('/docs/mobile/4/getting-started/mcp')
146+
->assertOk()
147+
->assertSee('MCP Docs Server')
148+
->assertSee('https://nativephp.com/api/mcp/message');
149+
}
140150
}

0 commit comments

Comments
 (0)